/etc/resolv.conf
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 7 lines · you
If I edit
/etc/resolv.confas sysadm, eg. using vim, it gets the label root:object_r:etc_t.This means pumpd can no longer alter it, it requires it be system_u:object_r:resolv_conf_t.
What is the best way around this problem.
I have been thinking of writing a script that uses a similar concept to "vipw" for such things. It would use the setfiles configuration file to determine the correct context, and it would cause vi to edit the file under /tmp and use open_secure() to create the new file after vi has finished.
What do you think?
Signature · 3 lines
I do not get viruses because I do not use MS software. If you use Outlook then please do not put my email address in your address-book so that WHEN you get a virus it won't use my address in the
Quoted 1 line
From field.
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 4 lines · Russell Coker
I have been thinking of writing a script that uses a similar concept to "vipw" for such things. It would use the setfiles configuration file to determine the correct context, and it would cause vi to edit the file under /tmp and use
open_secure()to create the new file after vi has finished.
How about a program that does a stat_secure on the original file to obtain its SID, creates the temporary file (in the same directory as the original, with a different name) with that SID via open_secure, and then renames the temporary file to the original when it is done (to provide a more atomic update)? This is similar (but not identical) to the modifications to logrotate to preserve the SID on a log file when it is rotated.
--
Stephen D. Smalley, NAI Labs
[email protected]
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.