Hi, I just did make install while working on rhgb optimization, and came across this: $ ls -lZ /usr/bin/rhgb -rwxr-xr-x root root system_u:object_r:bin_t /usr/bin/rhgb running $ sudo /sbin/restorecon /usr/bin/rhgb results in $ ls -lZ /usr/bin/rhgb -rwxr-xr-x root root system_u:object_r:rhgb_exec_t /usr/bin/rhgb
THere used to be a builtin matchpathcon/setfscreatecon before creating the destination file. This is similar to rpm, so I think it should set the correct file context. It should fail over to not setting the file context if it can't retrieve it.
for reference, the relevant make install output is: /usr/bin/install -c rhgb /usr/bin/rhgb
Fixed in coreutils-6.9-13.fc9 , will backport to lower fedoras, closing RAWHIDE.
seems to be broken in coreutils-6.10-4.fc9.x86_64 I did a make install today for gdm and when i restarted gdm users logging in got the wrong context making it so that nm-applet couldn't talk over d-bus to NetworkManager with messages like: security: context user_u:system_r:unconfined_dbusd_t:s0 is invalid
before make install: $ ls -lZ /usr/sbin/gdm-binary -rwxr-xr-x root root system_u:object_r:xdm_exec_t:s0 /usr/sbin/gdm-binary after: $ ls -lZ /usr/sbin/gdm-binary -rwxr-xr-x root root user_u:object_r:bin_t:s0 /usr/sbin/gdm-binary
Thanks for report, it is possible, because upstream implemented many things in different way than RedHat and there may be some implementation conflicts. Will check it and hopefully fix that asap...
Fixed again in coreutils-6.10-8.fc9 , caused by upstream changes. Closing RAWHIDE.