- Don't set fs uid until after pam_open_session (bug #77791)..
This commit is contained in:
parent
641fbf9ee3
commit
a2135bf8a5
@ -9,8 +9,8 @@
|
||||
|
||||
$(PROGRAMS): ../lib/libfetish.a
|
||||
|
||||
--- coreutils-5.2.0/src/su.c.pam 2004-02-23 17:40:54.000000000 +0000
|
||||
+++ coreutils-5.2.0/src/su.c 2004-02-23 17:40:54.000000000 +0000
|
||||
--- coreutils-5.2.0/src/su.c 2004-02-23 17:40:54.000000000 +0000
|
||||
+++ coreutils-5.2.1/src/su.c 2004-12-06 15:47:07.082619911 +0000
|
||||
@@ -38,6 +38,16 @@
|
||||
restricts who can su to UID 0 accounts. RMS considers that to
|
||||
be fascist.
|
||||
@ -306,15 +306,10 @@
|
||||
}
|
||||
|
||||
/* Return 1 if SHELL is a restricted shell (one not returned by
|
||||
@@ -586,9 +771,13 @@
|
||||
}
|
||||
modify_environment (pw, shell);
|
||||
@@ -588,7 +773,8 @@
|
||||
|
||||
+
|
||||
+#ifdef USE_PAM
|
||||
+ setfsuid(pw->pw_uid);
|
||||
+ setfsgid(pw->pw_gid);
|
||||
+#else
|
||||
+#ifndef USE_PAM
|
||||
change_identity (pw);
|
||||
- if (simulate_login && chdir (pw->pw_dir))
|
||||
- error (0, errno, _("warning: cannot change directory to %s"), pw->pw_dir);
|
||||
|
@ -4,7 +4,7 @@
|
||||
Summary: The GNU core utilities: a set of tools commonly used in shell scripts
|
||||
Name: coreutils
|
||||
Version: 5.2.1
|
||||
Release: 33
|
||||
Release: 34
|
||||
License: GPL
|
||||
Group: System Environment/Base
|
||||
Url: http://www.gnu.org/software/coreutils/
|
||||
@ -250,6 +250,9 @@ fi
|
||||
/sbin/runuser
|
||||
|
||||
%changelog
|
||||
* Mon Dec 6 2004 Tim Waugh <twaugh@redhat.com> 5.2.1-34
|
||||
- Don't set fs uid until after pam_open_session (bug #77791)..
|
||||
|
||||
* Thu Nov 25 2004 Tim Waugh <twaugh@redhat.com> 5.2.1-33
|
||||
- Fixed colorls.csh (bug #139988). Patch from Miloslav Trmac.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user