rpms/krb5/devel krb5-1.6.2-login_chdir.patch,NONE,1.1
Nalin Somabhai Dahyabhai (nalin)
fedora-extras-commits at redhat.com
Thu Jul 26 19:07:24 UTC 2007
- Previous message (by thread): rpms/krb5/devel krb5-1.6.2-key_exp.patch,NONE,1.1
- Next message (by thread): rpms/syslog-ng/F-7 syslog-ng-2.0.5-conf.patch, NONE, 1.1 .cvsignore, 1.12, 1.13 sources, 1.12, 1.13 syslog-ng.spec, 1.25, 1.26 syslog-ng-2.0.4-conf.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: nalin
Update of /cvs/pkgs/rpms/krb5/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv4822
Added Files:
krb5-1.6.2-login_chdir.patch
Log Message:
- test patch for login chdir when $HOME is on root-squashed nfs
krb5-1.6.2-login_chdir.patch:
--- NEW FILE krb5-1.6.2-login_chdir.patch ---
Change to the user's directory after dropping privileges, in case it is only
accessible to the user (for example, if it's in NFS with root squashing).
Incomplete - we probably need to do the same for rshd and ftpd.
diff -up krb5/src/appl/bsd/login.c krb5/src/appl/bsd/login.c
--- krb5/src/appl/bsd/login.c 2007-07-11 13:50:34.000000000 -0400
+++ krb5/src/appl/bsd/login.c 2007-07-11 13:50:36.000000000 -0400
@@ -1497,13 +1497,8 @@ int main(argc, argv)
}
#endif /* USE_PAM */
- if (chdir(pwd->pw_dir) < 0) {
- printf("No directory %s!\n", pwd->pw_dir);
- if (chdir("/"))
- exit(0);
- pwd->pw_dir = "/";
- printf("Logging in with home = \"/\".\n");
- }
+ if (chdir("/"))
+ exit(0);
/* nothing else left to fail -- really log in */
{
@@ -1710,6 +1705,14 @@ int main(argc, argv)
sleepexit(1);
}
+ if (chdir(pwd->pw_dir) < 0) {
+ printf("No directory %s!\n", pwd->pw_dir);
+ if (chdir("/"))
+ exit(0);
+ pwd->pw_dir = "/";
+ printf("Logging in with home = \"/\".\n");
+ }
+
/*
* We are the user now. Re-create the destroyed ccache and
* ticket file.
- Previous message (by thread): rpms/krb5/devel krb5-1.6.2-key_exp.patch,NONE,1.1
- Next message (by thread): rpms/syslog-ng/F-7 syslog-ng-2.0.5-conf.patch, NONE, 1.1 .cvsignore, 1.12, 1.13 sources, 1.12, 1.13 syslog-ng.spec, 1.25, 1.26 syslog-ng-2.0.4-conf.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list