[Pkg-shadow-devel] packaging next 4.1.3
Nicolas François
nicolas.francois at centraliens.net
Sat Apr 11 18:51:48 UTC 2009
Hi Peter,
On Wed, Apr 08, 2009 at 12:00:25PM +0200, pvrabec at redhat.com wrote:
>
> I have packaged next 4.1.3 and made some clean up with patches. Everything
> seems to be OK, but I have two patches that could upstream consider for
> inclusion.
I applied the two patches.
> selinux.patch: add -Z option to map selinux user for user's login
Here are some comments (I think they can wait for a later release):
* newusers should also have such option. I've added a TODO item.
* I only called selinux_update_mapping() when Zflg is set.
This does not change anything currently, but could be easier to maintain.
* selinux_file_context should be moved out of libmisc/copydir.c. I've
added a TODO item.
* You added setfscreatecon (NULL) in copy_tree() (libmisc/copydir.c).
Do you think it would be better to just call selinux_file_context() in
copy_tree() or shall we also call setfscreatecon (NULL) from each of
the copy_*() functions.
* Can you check the header of libmisc/system.c?
I was not sure who I should assign the copyright to.
* In usermod, in case a user is renamed, Isn't there a need to call
semanage twice (to remove the mapping of the old username and map the
new username).
user_newname should be used in selinux_update_mapping ()
* It could be nice to the useradd, usermod, userdel selinux helpers to
libmisc
* I did not include selinux/selinux.h in lib/defines.h. This does not
look necessary.
Best Regards,
--
Nekral
More information about the Pkg-shadow-devel
mailing list