Skip to contentSkip to conversation

Can we eliminate or optimize nodups_specs within libselinux

DISCUSSION Daniel J Walsh 2 participants 3 messages Jun 1, 2011 SELinux security module

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

We are costing boot 1.5s

https://bugzilla.redhat.com/show_bug.cgi?id=709014
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAk3mQX8ACgkQrlYvE4MpobPXQQCeI/tBMC9RFJ1hH8/5hRoX2axs NQAAmweIx78ux8VIa+/T4oX03MLJAhi1
=4Xh4
-----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.

#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 3 lines · Daniel J Walsh

We are costing boot 1.5s

https://bugzilla.redhat.com/show_bug.cgi?id=709014

- --
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.

This seems to be something libsemanage should do to verify the file_context file is good, but libselinux should just figure the file_context file is sane. And be optimised to read access.

Might be a reason tools like install run slow also.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAk3mQwsACgkQrlYvE4MpobMxHwCghBRuPpL2c8wGITLeF6jAGRsO 3yUAnimXDBNaeM4aNYuVQSv7zBOaigmF
=9XXq
-----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.

#2 lore raw
Quoted 8 lines · Daniel J Walsh
Quoted 3 lines · Daniel J Walsh
Quoted 3 lines

We are costing boot 1.5s

https://bugzilla.redhat.com/show_bug.cgi?id=709014

This seems to be something libsemanage should do to verify the file_context file is good, but libselinux should just figure the file_context file is sane. And be optimised to read access.

Makes sense. It probably should have been doing this for a long time anyway, since it needs to take into account for genhomedircon output and local file contexts. I think it should also cause a transaction fail if there are file context errors.

Quoted 1 line

Might be a reason tools like install run slow also.

I'd bet on it, since all those tools do is, basically, matchpathcon() then setfscreatecon().

Signature · 8 lines
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com

--
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.