diff options
author | adamw <adamw@FreeBSD.org> | 2005-01-15 03:25:56 +0800 |
---|---|---|
committer | adamw <adamw@FreeBSD.org> | 2005-01-15 03:25:56 +0800 |
commit | 9f7c072fd9186df5b8b696a5dcb1fc298b606dd0 (patch) | |
tree | 339b281dc1a3f7ae80346f869b187bc861fdd2af /security/libgnomesu/files | |
parent | 1d92f67c5e548a798f07e25c047b471f3cdc9124 (diff) | |
download | freebsd-ports-gnome-9f7c072fd9186df5b8b696a5dcb1fc298b606dd0.tar.gz freebsd-ports-gnome-9f7c072fd9186df5b8b696a5dcb1fc298b606dd0.tar.zst freebsd-ports-gnome-9f7c072fd9186df5b8b696a5dcb1fc298b606dd0.zip |
Extra super OMFG-I'd-be-screwed-without-you thanks to marcus for the
sleuthing here.
- Stop libgnomesu from causing 4.x machines to catch fire and break
all your dishes.
- Don't install stuff into /etc/pam.d by default.
- Install example "gnomesu-pam"s, and include a pkg-message explaining
what to do with them (HINT: copy the appropriate one into /etc/pam.d
and name it gnomesu-pam).
- Fix a double-free.
With these fixes, the gnomeu binary in libgnomesu provides a much more
comprehensive GNOME su frontend, and the Great Red Eye of Adamwdor is
now turned towards sysutils/gnomesu.
Diffstat (limited to 'security/libgnomesu/files')
4 files changed, 27 insertions, 2 deletions
diff --git a/security/libgnomesu/files/gnomesu-pam.4.x.sample b/security/libgnomesu/files/gnomesu-pam.4.x.sample new file mode 100644 index 000000000000..abaa3ca0a885 --- /dev/null +++ b/security/libgnomesu/files/gnomesu-pam.4.x.sample @@ -0,0 +1,3 @@ +gnomesu-pam auth required pam_unix.so try_first_pass +gnomesu-pam session required pam_permit.so +gnomesu-pam account required pam_permit.so diff --git a/security/libgnomesu/files/gnomesu-pam.5.x.sample b/security/libgnomesu/files/gnomesu-pam.5.x.sample new file mode 100644 index 000000000000..22120ae72b10 --- /dev/null +++ b/security/libgnomesu/files/gnomesu-pam.5.x.sample @@ -0,0 +1,3 @@ +auth required pam_unix.so try_first_pass +session required pam_permit.so +account required pam_permit.so diff --git a/security/libgnomesu/files/patch-pam-backend_Makefile.in b/security/libgnomesu/files/patch-pam-backend_Makefile.in new file mode 100644 index 000000000000..fc57445b65f3 --- /dev/null +++ b/security/libgnomesu/files/patch-pam-backend_Makefile.in @@ -0,0 +1,11 @@ +--- pam-backend/Makefile.in.orig Fri Jan 14 12:47:56 2005 ++++ pam-backend/Makefile.in Fri Jan 14 12:52:31 2005 +@@ -205,7 +205,7 @@ + @HAVE_PAM_TRUE@gnomesu_pam_backend_DEPENDENCIES = $(top_srcdir)/su-backend/libcommon.la + + @HAVE_PAM_TRUE@@INSTALL_PAM_TRUE@pamdir = $(PAMDIR) +-@HAVE_PAM_TRUE@@INSTALL_PAM_TRUE@pam_DATA = gnomesu-pam ++@HAVE_PAM_TRUE@@INSTALL_PAM_FALSE@pam_DATA = gnomesu-pam + + @HAVE_PAM_TRUE@installed_exe = $(DESTDIR)$(libexecdir)/`echo gnomesu-pam-backend | sed $(transform)` + diff --git a/security/libgnomesu/files/patch-pam-backend_pam.c b/security/libgnomesu/files/patch-pam-backend_pam.c index e43d290cc2df..d75a74c675d4 100644 --- a/security/libgnomesu/files/patch-pam-backend_pam.c +++ b/security/libgnomesu/files/patch-pam-backend_pam.c @@ -1,5 +1,5 @@ ---- pam-backend/pam.c.orig Thu Jan 13 23:43:53 2005 -+++ pam-backend/pam.c Thu Jan 13 23:43:59 2005 +--- pam-backend/pam.c.orig Wed Jan 12 07:16:27 2005 ++++ pam-backend/pam.c Fri Jan 14 14:14:42 2005 @@ -17,7 +17,7 @@ */ @@ -9,3 +9,11 @@ #include <stdio.h> #include <stdlib.h> #include <sys/types.h> +@@ -276,7 +276,6 @@ + #ifdef HAVE_SETFSUID + setfsuid (pw->pw_uid); + #endif /* HAVE_SETFSUID */ +- change_identity (pw); + initgroups (pw->pw_name, pw->pw_gid); + setgid (pw->pw_gid); + setuid (pw->pw_uid); |