[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Useradd Integration (v. 2)


> Next, I will work on writing C functions for manipulating the
> homedir_template file. They will be analogous to users_file.c,
> and basically move genhomedircon's job into the libsepol library.

Actually, I think it would be better if I pulled out 
iterate, mod_user, add... into a more generic thing I can reuse
for net_contexts, and homedir... 

So: a method for iterating records in a file... 
for modifying records in a file.

Then the structure of the record would be specified for each
thing I want to iterate over - instead of user_config_t, it would
be something else, with a different parse function.

I haven't actually seen the checkpolicy parsing code, and how
modular it is - I used the genusers parsing code... If the
checkpolicy code is sufficiently modular, I should be able to 
reuse that...

-- 
Ivan Gyurdiev <ivg2@xxxxxxxxxxx>
Cornell University


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.


This mailing list archive is a service of Copilot Consulting.