diff options
author | will <will@FreeBSD.org> | 2001-11-01 08:55:05 +0800 |
---|---|---|
committer | will <will@FreeBSD.org> | 2001-11-01 08:55:05 +0800 |
commit | 431bea69d3339e2ae3ec1ad93279f5f562d8932d (patch) | |
tree | c61561468ab64ac5d71659112d785a42b83c9630 /x11/kde4-workspace | |
parent | ef0b636c1a51530cdbc4c77aecb111df7e610601 (diff) | |
download | freebsd-ports-gnome-431bea69d3339e2ae3ec1ad93279f5f562d8932d.tar.gz freebsd-ports-gnome-431bea69d3339e2ae3ec1ad93279f5f562d8932d.tar.zst freebsd-ports-gnome-431bea69d3339e2ae3ec1ad93279f5f562d8932d.zip |
Bite the bullet and make kcheckpass setuid root by default so the lock
and screensaver functions work by default (i.e. they let you back in if
you type the right password). This will also avoid the caveat that quite
often people install KDE using the metaport and usually leave it runnning
and by the time it's done, the not-so-helpful message is long gone.
Usability police: ~20 emails from users...
Won't mind releasing a security advisory for this if needed: kris
Diffstat (limited to 'x11/kde4-workspace')
-rw-r--r-- | x11/kde4-workspace/Makefile | 3 | ||||
-rw-r--r-- | x11/kde4-workspace/pkg-message | 21 |
2 files changed, 2 insertions, 22 deletions
diff --git a/x11/kde4-workspace/Makefile b/x11/kde4-workspace/Makefile index a78f50c90742..ee69d6cb95bb 100644 --- a/x11/kde4-workspace/Makefile +++ b/x11/kde4-workspace/Makefile @@ -7,6 +7,7 @@ PORTNAME= kdebase PORTVERSION= 2.2.1 +PORTREVISION= 1 CATEGORIES?= x11 kde MASTER_SITES= ${MASTER_SITE_KDE} MASTER_SITE_SUBDIR= stable/${PORTVERSION}/src @@ -64,6 +65,6 @@ post-configure: ${PERL} -pi -e "s@444@644@g" ${WRKSRC}/kdesktop/init/Templates/Makefile post-install: - @${CAT} ${PKGMESSAGE} + ${CHMOD} u+s ${PREFIX}/bin/kcheckpass .include <bsd.port.post.mk> diff --git a/x11/kde4-workspace/pkg-message b/x11/kde4-workspace/pkg-message deleted file mode 100644 index 1869be60abfa..000000000000 --- a/x11/kde4-workspace/pkg-message +++ /dev/null @@ -1,21 +0,0 @@ - -************************** I M P O R T A N T **************************** - -This package (kdebase2) installs a program called kcheckpass which is -used by kdm or screensavers to check the user's password. This activity -requires it to be setuid root. However, for security reasons, FreeBSD -leaves the setuid bit on this binary off by default, for several reasons. -First, some people may not use screensavers or kdm at all. Second, -others may choose to use a different screensaver or display manager -utility. And finally, there may be holes in kcheckpass which can be -exploited to gain root privileges. FreeBSD chooses not to take that risk -with the default package. If you decide that you need it setuid root, -you can make it so: - - chmod u+s ${PREFIX}/bin/kcheckpass - -..where ${PREFIX} is the prefix where this package was installed. It is -typically /usr/local but may also be /usr/X11R6 or /usr. - -************************** I M P O R T A N T **************************** - |