Use standard way to install setuid binaries on Debian and Ubuntu

pull/3/head
Slávek Banko 11 years ago
parent 63b881d00a
commit 9e497b5b5e

@ -29,6 +29,8 @@ DEB_CMAKE_EXTRA_FLAGS := -DLIB_SUFFIX="" -DCMAKE_INSTALL_PREFIX="/opt/trinity" -
DEB_BUILD_PARALLEL = true DEB_BUILD_PARALLEL = true
DEB_FIXPERMS_EXCLUDE := \ DEB_FIXPERMS_EXCLUDE := \
opt/trinity/bin/kcheckpass \
opt/trinity/bin/tdekbdledsync \
opt/trinity/bin/tdesud \ opt/trinity/bin/tdesud \
opt/trinity/bin/tdmtsak opt/trinity/bin/tdmtsak
@ -246,8 +248,6 @@ binary-install/tdebase-trinity-bin::
install -p -D -m644 debian/ubuntu.xmodmap debian/tdebase-trinity-bin/opt/trinity/share/apps/kxkb/system.xmodmap install -p -D -m644 debian/ubuntu.xmodmap debian/tdebase-trinity-bin/opt/trinity/share/apps/kxkb/system.xmodmap
install -p -D -m644 debian/80ubuntu-xmodmap debian/tdebase-trinity-bin/etc/X11/Xsession.d/80ubuntu-trinity-xmodmap install -p -D -m644 debian/80ubuntu-xmodmap debian/tdebase-trinity-bin/etc/X11/Xsession.d/80ubuntu-trinity-xmodmap
mkdir -p debian/tdebase-trinity-bin/opt/trinity/share/autostart/ mkdir -p debian/tdebase-trinity-bin/opt/trinity/share/autostart/
chmod +s debian/tdebase-trinity-bin/opt/trinity/bin/kcheckpass
chmod +s debian/tdebase-trinity-bin/opt/trinity/bin/tdekbdledsync
binary-install/ksmserver-trinity:: binary-install/ksmserver-trinity::
install -p -D -m644 debian/tmp/opt/trinity/share/apps/tdm/sessions/tde.desktop debian/ksmserver-trinity/usr/share/xsessions/trinity.desktop install -p -D -m644 debian/tmp/opt/trinity/share/apps/tdm/sessions/tde.desktop debian/ksmserver-trinity/usr/share/xsessions/trinity.desktop

@ -1,4 +1,7 @@
tdebase-bin-trinity: setuid-binary opt/trinity/bin/kcheckpass 4711 root/root
tdebase-bin-trinity: setuid-binary opt/trinity/bin/tdekbdledsync 4711 root/root
tdebase-bin-trinity: setgid-binary opt/trinity/bin/tdesud 2755 root/nogroup tdebase-bin-trinity: setgid-binary opt/trinity/bin/tdesud 2755 root/nogroup
tdebase-bin-trinity: setuid-binary opt/trinity/bin/tdmtsak 4711 root/root
tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_kcminit.so tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_kcminit.so
tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_khotkeys.so tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_khotkeys.so
tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_kxkb.so tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_kxkb.so

@ -11,8 +11,6 @@ fi
case "$1" in case "$1" in
configure) configure)
chmod +s /opt/trinity/bin/kcheckpass || true
chmod +s /opt/trinity/bin/tdekbdledsync || true
;; ;;
abort-upgrade) abort-upgrade)
;; ;;

@ -29,6 +29,8 @@ DEB_CMAKE_EXTRA_FLAGS := -DLIB_SUFFIX="" -DCMAKE_INSTALL_PREFIX="/opt/trinity" -
DEB_BUILD_PARALLEL = true DEB_BUILD_PARALLEL = true
DEB_FIXPERMS_EXCLUDE := \ DEB_FIXPERMS_EXCLUDE := \
opt/trinity/bin/kcheckpass \
opt/trinity/bin/tdekbdledsync \
opt/trinity/bin/tdesud \ opt/trinity/bin/tdesud \
opt/trinity/bin/tdmtsak opt/trinity/bin/tdmtsak
@ -246,8 +248,6 @@ binary-install/tdebase-trinity-bin::
install -p -D -m644 debian/ubuntu.xmodmap debian/tdebase-trinity-bin/opt/trinity/share/apps/kxkb/system.xmodmap install -p -D -m644 debian/ubuntu.xmodmap debian/tdebase-trinity-bin/opt/trinity/share/apps/kxkb/system.xmodmap
install -p -D -m644 debian/80ubuntu-xmodmap debian/tdebase-trinity-bin/etc/X11/Xsession.d/80ubuntu-trinity-xmodmap install -p -D -m644 debian/80ubuntu-xmodmap debian/tdebase-trinity-bin/etc/X11/Xsession.d/80ubuntu-trinity-xmodmap
mkdir -p debian/tdebase-trinity-bin/opt/trinity/share/autostart/ mkdir -p debian/tdebase-trinity-bin/opt/trinity/share/autostart/
chmod +s debian/tdebase-trinity-bin/opt/trinity/bin/kcheckpass
chmod +s debian/tdebase-trinity-bin/opt/trinity/bin/tdekbdledsync
binary-install/ksmserver-trinity:: binary-install/ksmserver-trinity::
install -p -D -m644 debian/tmp/opt/trinity/share/apps/tdm/sessions/tde.desktop debian/ksmserver-trinity/usr/share/xsessions/trinity.desktop install -p -D -m644 debian/tmp/opt/trinity/share/apps/tdm/sessions/tde.desktop debian/ksmserver-trinity/usr/share/xsessions/trinity.desktop

@ -1,4 +1,7 @@
tdebase-bin-trinity: setuid-binary opt/trinity/bin/kcheckpass 4711 root/root
tdebase-bin-trinity: setuid-binary opt/trinity/bin/tdekbdledsync 4711 root/root
tdebase-bin-trinity: setgid-binary opt/trinity/bin/tdesud 2755 root/nogroup tdebase-bin-trinity: setgid-binary opt/trinity/bin/tdesud 2755 root/nogroup
tdebase-bin-trinity: setuid-binary opt/trinity/bin/tdmtsak 4711 root/root
tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_kcminit.so tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_kcminit.so
tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_khotkeys.so tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_khotkeys.so
tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_kxkb.so tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_kxkb.so

@ -11,8 +11,6 @@ fi
case "$1" in case "$1" in
configure) configure)
chmod +s /opt/trinity/bin/kcheckpass || true
chmod +s /opt/trinity/bin/tdekbdledsync || true
;; ;;
abort-upgrade) abort-upgrade)
;; ;;

@ -29,6 +29,8 @@ DEB_CMAKE_EXTRA_FLAGS := -DLIB_SUFFIX="" -DCMAKE_INSTALL_PREFIX="/opt/trinity" -
DEB_BUILD_PARALLEL = true DEB_BUILD_PARALLEL = true
DEB_FIXPERMS_EXCLUDE := \ DEB_FIXPERMS_EXCLUDE := \
opt/trinity/bin/kcheckpass \
opt/trinity/bin/tdekbdledsync \
opt/trinity/bin/tdesud \ opt/trinity/bin/tdesud \
opt/trinity/bin/tdmtsak opt/trinity/bin/tdmtsak
@ -246,8 +248,6 @@ binary-install/tdebase-trinity-bin::
install -p -D -m644 debian/ubuntu.xmodmap debian/tdebase-trinity-bin/opt/trinity/share/apps/kxkb/system.xmodmap install -p -D -m644 debian/ubuntu.xmodmap debian/tdebase-trinity-bin/opt/trinity/share/apps/kxkb/system.xmodmap
install -p -D -m644 debian/80ubuntu-xmodmap debian/tdebase-trinity-bin/etc/X11/Xsession.d/80ubuntu-trinity-xmodmap install -p -D -m644 debian/80ubuntu-xmodmap debian/tdebase-trinity-bin/etc/X11/Xsession.d/80ubuntu-trinity-xmodmap
mkdir -p debian/tdebase-trinity-bin/opt/trinity/share/autostart/ mkdir -p debian/tdebase-trinity-bin/opt/trinity/share/autostart/
chmod +s debian/tdebase-trinity-bin/opt/trinity/bin/kcheckpass
chmod +s debian/tdebase-trinity-bin/opt/trinity/bin/tdekbdledsync
binary-install/ksmserver-trinity:: binary-install/ksmserver-trinity::
install -p -D -m644 debian/tmp/opt/trinity/share/apps/tdm/sessions/tde.desktop debian/ksmserver-trinity/usr/share/xsessions/trinity.desktop install -p -D -m644 debian/tmp/opt/trinity/share/apps/tdm/sessions/tde.desktop debian/ksmserver-trinity/usr/share/xsessions/trinity.desktop

@ -1,4 +1,7 @@
tdebase-bin-trinity: setuid-binary opt/trinity/bin/kcheckpass 4711 root/root
tdebase-bin-trinity: setuid-binary opt/trinity/bin/tdekbdledsync 4711 root/root
tdebase-bin-trinity: setgid-binary opt/trinity/bin/tdesud 2755 root/nogroup tdebase-bin-trinity: setgid-binary opt/trinity/bin/tdesud 2755 root/nogroup
tdebase-bin-trinity: setuid-binary opt/trinity/bin/tdmtsak 4711 root/root
tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_kcminit.so tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_kcminit.so
tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_khotkeys.so tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_khotkeys.so
tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_kxkb.so tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_kxkb.so

@ -11,8 +11,6 @@ fi
case "$1" in case "$1" in
configure) configure)
chmod +s /opt/trinity/bin/kcheckpass || true
chmod +s /opt/trinity/bin/tdekbdledsync || true
;; ;;
abort-upgrade) abort-upgrade)
;; ;;

@ -29,6 +29,8 @@ DEB_CMAKE_EXTRA_FLAGS := -DLIB_SUFFIX="" -DCMAKE_INSTALL_PREFIX="/opt/trinity" -
DEB_BUILD_PARALLEL = true DEB_BUILD_PARALLEL = true
DEB_FIXPERMS_EXCLUDE := \ DEB_FIXPERMS_EXCLUDE := \
opt/trinity/bin/kcheckpass \
opt/trinity/bin/tdekbdledsync \
opt/trinity/bin/tdesud \ opt/trinity/bin/tdesud \
opt/trinity/bin/tdmtsak opt/trinity/bin/tdmtsak
@ -246,8 +248,6 @@ binary-install/tdebase-trinity-bin::
install -p -D -m644 debian/ubuntu.xmodmap debian/tdebase-trinity-bin/opt/trinity/share/apps/kxkb/system.xmodmap install -p -D -m644 debian/ubuntu.xmodmap debian/tdebase-trinity-bin/opt/trinity/share/apps/kxkb/system.xmodmap
install -p -D -m644 debian/80ubuntu-xmodmap debian/tdebase-trinity-bin/etc/X11/Xsession.d/80ubuntu-trinity-xmodmap install -p -D -m644 debian/80ubuntu-xmodmap debian/tdebase-trinity-bin/etc/X11/Xsession.d/80ubuntu-trinity-xmodmap
mkdir -p debian/tdebase-trinity-bin/opt/trinity/share/autostart/ mkdir -p debian/tdebase-trinity-bin/opt/trinity/share/autostart/
chmod +s debian/tdebase-trinity-bin/opt/trinity/bin/kcheckpass
chmod +s debian/tdebase-trinity-bin/opt/trinity/bin/tdekbdledsync
binary-install/ksmserver-trinity:: binary-install/ksmserver-trinity::
install -p -D -m644 debian/tmp/opt/trinity/share/apps/tdm/sessions/tde.desktop debian/ksmserver-trinity/usr/share/xsessions/trinity.desktop install -p -D -m644 debian/tmp/opt/trinity/share/apps/tdm/sessions/tde.desktop debian/ksmserver-trinity/usr/share/xsessions/trinity.desktop

@ -1,4 +1,7 @@
tdebase-bin-trinity: setuid-binary opt/trinity/bin/kcheckpass 4711 root/root
tdebase-bin-trinity: setuid-binary opt/trinity/bin/tdekbdledsync 4711 root/root
tdebase-bin-trinity: setgid-binary opt/trinity/bin/tdesud 2755 root/nogroup tdebase-bin-trinity: setgid-binary opt/trinity/bin/tdesud 2755 root/nogroup
tdebase-bin-trinity: setuid-binary opt/trinity/bin/tdmtsak 4711 root/root
tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_kcminit.so tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_kcminit.so
tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_khotkeys.so tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_khotkeys.so
tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_kxkb.so tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_kxkb.so

@ -11,8 +11,6 @@ fi
case "$1" in case "$1" in
configure) configure)
chmod +s /opt/trinity/bin/kcheckpass || true
chmod +s /opt/trinity/bin/tdekbdledsync || true
;; ;;
abort-upgrade) abort-upgrade)
;; ;;

@ -29,6 +29,8 @@ DEB_CMAKE_EXTRA_FLAGS := -DLIB_SUFFIX="" -DCMAKE_INSTALL_PREFIX="/opt/trinity" -
DEB_BUILD_PARALLEL = true DEB_BUILD_PARALLEL = true
DEB_FIXPERMS_EXCLUDE := \ DEB_FIXPERMS_EXCLUDE := \
opt/trinity/bin/kcheckpass \
opt/trinity/bin/tdekbdledsync \
opt/trinity/bin/tdesud \ opt/trinity/bin/tdesud \
opt/trinity/bin/tdmtsak opt/trinity/bin/tdmtsak
@ -246,8 +248,6 @@ binary-install/tdebase-trinity-bin::
install -p -D -m644 debian/ubuntu.xmodmap debian/tdebase-trinity-bin/opt/trinity/share/apps/kxkb/system.xmodmap install -p -D -m644 debian/ubuntu.xmodmap debian/tdebase-trinity-bin/opt/trinity/share/apps/kxkb/system.xmodmap
install -p -D -m644 debian/80ubuntu-xmodmap debian/tdebase-trinity-bin/etc/X11/Xsession.d/80ubuntu-trinity-xmodmap install -p -D -m644 debian/80ubuntu-xmodmap debian/tdebase-trinity-bin/etc/X11/Xsession.d/80ubuntu-trinity-xmodmap
mkdir -p debian/tdebase-trinity-bin/opt/trinity/share/autostart/ mkdir -p debian/tdebase-trinity-bin/opt/trinity/share/autostart/
chmod +s debian/tdebase-trinity-bin/opt/trinity/bin/kcheckpass
chmod +s debian/tdebase-trinity-bin/opt/trinity/bin/tdekbdledsync
binary-install/ksmserver-trinity:: binary-install/ksmserver-trinity::
install -p -D -m644 debian/tmp/opt/trinity/share/apps/tdm/sessions/tde.desktop debian/ksmserver-trinity/usr/share/xsessions/trinity.desktop install -p -D -m644 debian/tmp/opt/trinity/share/apps/tdm/sessions/tde.desktop debian/ksmserver-trinity/usr/share/xsessions/trinity.desktop

@ -1,4 +1,7 @@
tdebase-bin-trinity: setuid-binary opt/trinity/bin/kcheckpass 4711 root/root
tdebase-bin-trinity: setuid-binary opt/trinity/bin/tdekbdledsync 4711 root/root
tdebase-bin-trinity: setgid-binary opt/trinity/bin/tdesud 2755 root/nogroup tdebase-bin-trinity: setgid-binary opt/trinity/bin/tdesud 2755 root/nogroup
tdebase-bin-trinity: setuid-binary opt/trinity/bin/tdmtsak 4711 root/root
tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_kcminit.so tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_kcminit.so
tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_khotkeys.so tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_khotkeys.so
tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_kxkb.so tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_kxkb.so

@ -11,8 +11,6 @@ fi
case "$1" in case "$1" in
configure) configure)
chmod +s /opt/trinity/bin/kcheckpass || true
chmod +s /opt/trinity/bin/tdekbdledsync || true
;; ;;
abort-upgrade) abort-upgrade)
;; ;;

@ -29,6 +29,8 @@ DEB_CMAKE_EXTRA_FLAGS := -DLIB_SUFFIX="" -DCMAKE_INSTALL_PREFIX="/opt/trinity" -
DEB_BUILD_PARALLEL = true DEB_BUILD_PARALLEL = true
DEB_FIXPERMS_EXCLUDE := \ DEB_FIXPERMS_EXCLUDE := \
opt/trinity/bin/kcheckpass \
opt/trinity/bin/tdekbdledsync \
opt/trinity/bin/tdesud \ opt/trinity/bin/tdesud \
opt/trinity/bin/tdmtsak opt/trinity/bin/tdmtsak
@ -246,8 +248,6 @@ binary-install/tdebase-trinity-bin::
install -p -D -m644 debian/ubuntu.xmodmap debian/tdebase-trinity-bin/opt/trinity/share/apps/kxkb/system.xmodmap install -p -D -m644 debian/ubuntu.xmodmap debian/tdebase-trinity-bin/opt/trinity/share/apps/kxkb/system.xmodmap
install -p -D -m644 debian/80ubuntu-xmodmap debian/tdebase-trinity-bin/etc/X11/Xsession.d/80ubuntu-trinity-xmodmap install -p -D -m644 debian/80ubuntu-xmodmap debian/tdebase-trinity-bin/etc/X11/Xsession.d/80ubuntu-trinity-xmodmap
mkdir -p debian/tdebase-trinity-bin/opt/trinity/share/autostart/ mkdir -p debian/tdebase-trinity-bin/opt/trinity/share/autostart/
chmod +s debian/tdebase-trinity-bin/opt/trinity/bin/kcheckpass
chmod +s debian/tdebase-trinity-bin/opt/trinity/bin/tdekbdledsync
binary-install/ksmserver-trinity:: binary-install/ksmserver-trinity::
install -p -D -m644 debian/tmp/opt/trinity/share/apps/tdm/sessions/tde.desktop debian/ksmserver-trinity/usr/share/xsessions/trinity.desktop install -p -D -m644 debian/tmp/opt/trinity/share/apps/tdm/sessions/tde.desktop debian/ksmserver-trinity/usr/share/xsessions/trinity.desktop

@ -1,4 +1,7 @@
tdebase-bin-trinity: setuid-binary opt/trinity/bin/kcheckpass 4711 root/root
tdebase-bin-trinity: setuid-binary opt/trinity/bin/tdekbdledsync 4711 root/root
tdebase-bin-trinity: setgid-binary opt/trinity/bin/tdesud 2755 root/nogroup tdebase-bin-trinity: setgid-binary opt/trinity/bin/tdesud 2755 root/nogroup
tdebase-bin-trinity: setuid-binary opt/trinity/bin/tdmtsak 4711 root/root
tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_kcminit.so tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_kcminit.so
tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_khotkeys.so tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_khotkeys.so
tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_kxkb.so tdebase-bin-trinity: no-shlibs-control-file opt/trinity/lib/libtdeinit_kxkb.so

@ -11,8 +11,6 @@ fi
case "$1" in case "$1" in
configure) configure)
chmod +s /opt/trinity/bin/kcheckpass || true
chmod +s /opt/trinity/bin/tdekbdledsync || true
;; ;;
abort-upgrade) abort-upgrade)
;; ;;

Loading…
Cancel
Save