Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 6548 Details for
Bug 12207
pam_console_apply_devfs fails when oldcompat /dev names not used
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Use vc/0 or tty0 (as appropriate) when finding console
pam-0.75-pam_console-vc0.patch (text/plain), 2.06 KB, created by
Sam Yates
on 2002-12-16 16:08:35 UTC
(
hide
)
Description:
Use vc/0 or tty0 (as appropriate) when finding console
Filename:
MIME Type:
Creator:
Sam Yates
Created:
2002-12-16 16:08:35 UTC
Size:
2.06 KB
patch
obsolete
>--- Linux-PAM-0.75/modules/pam_console/pam_console_apply.c.orig 2002-12-16 22:22:20.000000000 +0100 >+++ Linux-PAM-0.75/modules/pam_console/pam_console_apply.c 2002-12-16 22:20:56.000000000 +0100 >@@ -56,6 +56,7 @@ > int i, c; > struct stat st; > char *consoleuser = NULL; >+ char *consoledev = NULL; > enum {Set, Reset} sense = Set; > > while((c = getopt(argc, argv, "c:f:r")) != -1) { >@@ -99,11 +100,19 @@ > } else { > sense = Reset; > } >+ /* >+ Devices tty0 (without devfs) and vc/0 (with devfs) >+ should be devices associated with the console >+ in the configuration. >+ Check both, as either may exist depending on >+ the presence or configuration of devfs. >+ */ >+ consoledev = check_console_name("vc/0", TRUE)?"vc/0":"tty0"; > if((sense == Set) && (consoleuser != NULL)) { >- set_permissions("tty0", consoleuser, TRUE); >+ set_permissions(consoledev, consoleuser, TRUE); > } > if(sense == Reset) { >- reset_permissions("tty0", TRUE); >+ reset_permissions(consoledev, TRUE); > } > return 0; > >--- Linux-PAM-0.75/modules/pam_console/pam_console_apply_devfsd.c.orig 2002-12-16 22:22:20.000000000 +0100 >+++ Linux-PAM-0.75/modules/pam_console/pam_console_apply_devfsd.c 2002-12-16 22:20:51.000000000 +0100 >@@ -54,6 +54,7 @@ > int i, c; > struct stat st; > char *consoleuser = NULL; >+ char *consoledev = NULL; > enum {Set, Reset} sense = Set; > static int parsed = 0; > >@@ -83,11 +84,19 @@ > } else { > sense = Reset; > } >+ /* >+ Devices tty0 (without devfs) and vc/0 (with devfs) >+ should be devices associated with the console >+ in the configuration. >+ Check both, as either may exist depending on >+ the presence or configuration of devfs. >+ */ >+ consoledev = check_console_name("vc/0", TRUE)?"vc/0":"tty0"; > if((sense == Set) && (consoleuser != NULL)) { >- set_permissions_single("tty0", consoleuser, TRUE, dname); >+ set_permissions_single(consoledev, consoleuser, TRUE, dname); > } > if(sense == Reset) { >- reset_permissions_single("tty0", TRUE, dname); >+ reset_permissions_single(consoledev, TRUE, dname); > } > return 0; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 12207
: 6548