* One more problem with genhomedircon replacement.
@ 2007-10-04 13:39 Daniel J Walsh
2007-10-04 21:45 ` Todd Miller
0 siblings, 1 reply; 2+ messages in thread
From: Daniel J Walsh @ 2007-10-04 13:39 UTC (permalink / raw)
To: SE Linux, Todd Miller
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Shadow-utils and perhaps others execute genhomedircon when adding users
or modifying the homedir. They are blowing up because the executable
genhomedircon no longer exists. I would like to just put out a script
that would call semanage to tell it to run the semanage_genhomedircon().
I also think it is useful to have the ability to execute this without a
rebuild/reload of policy for when the admin executes vipw or any other
way of adding a user to the system
But there are no Python bindings and no way to call this via semodule.
I can call semanage -Bn, but this is slow and cumberson.
I looked into why semanage_genhomedircon is not in a python binding, but
it uses sepol_policydb_t * policydb, which we would need to build.
So what is the best way to do this?
Dan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFHBOz4rlYvE4MpobMRAhPkAKCO4WCyQYQyxkSyfOOufo77HtgaCgCeMatS
f6pmBcQoObZevpjtTdCFMHo=
=wCF/
-----END PGP SIGNATURE-----
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: One more problem with genhomedircon replacement.
2007-10-04 13:39 One more problem with genhomedircon replacement Daniel J Walsh
@ 2007-10-04 21:45 ` Todd Miller
0 siblings, 0 replies; 2+ messages in thread
From: Todd Miller @ 2007-10-04 21:45 UTC (permalink / raw)
To: Daniel J Walsh, SE Linux
I wrote a small genhomedircon frontend for test purposes and it was not
significantly faster than "semodule -Bn" since we still have to create
an semanage tmp dir, populate it, and merge local policy into base
before the actual genhomedircon code can run.
- todd
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-10-04 21:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-04 13:39 One more problem with genhomedircon replacement Daniel J Walsh
2007-10-04 21:45 ` Todd Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.