This patch causes the mount points created in load_policy to have a proper name
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
"proc" and "selinuxfs"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAk2c1t8ACgkQrlYvE4MpobMdVwCg1FGxyVFbuoiresvyLPdVD3t5 d/cAnA9hlnt4KDUn03YfaSIVng6Gf4ay
=iL0A
-----END PGP SIGNATURE-----
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Resend: This patch causes the mount points created in load_policy to have a proper name
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 2 lines · Daniel J Walsh
"proc" and "selinuxfs"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAk2c14AACgkQrlYvE4MpobMC7gCglauBYIKMfBRUcQPaMGKTzYZV udUAn3X/rgUgJ55401IVwyCHC051bGQA
=47TI
-----END PGP SIGNATURE-----
libselinux/src/load_policy.c +2 -2
@@ -329,7 +329,7 @@ int selinux_init_load_policy(int *enforce)selinux_getenforcemode (&seconfig);/* Check for an override of the mode via the kernel command line. */ - rc =mount ("none" ,"/proc" ,"proc" ,0 ,0 ); + rc =mount ("proc" ,"/proc" ,"proc" ,0 ,0 ); cfg =fopen ("/proc/cmdline" ,"r" );if (cfg) {char *tmp;
@@ -369,7 +369,7 @@ int selinux_init_load_policy(int *enforce)* Check for the existence of SELinux via selinuxfs, and * mount it if present for use in the calls below. */ -if (mount ("none" ,SELINUXMNT ,"selinuxfs" ,0 ,0 ) <0 && errno !=EBUSY ) { +if (mount ("selinuxfs" ,SELINUXMNT ,"selinuxfs" ,0 ,0 ) <0 && errno !=EBUSY ) {if (errno ==ENODEV ) {/* * SELinux was disabled in the kernel, either
Steve Lawrence
AppliedRe: Resend: This patch causes the mount points created in load_policy to have a proper name
Quoted 6 lines · Daniel J Walsh
Quoted 1 line · Daniel J Walsh
"proc" and "selinuxfs"
Applied in libselinux-2.0.102
Thanks!
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.