bugzilla 518569 discusses making vsftpd SELinux aware.
https://bugzilla.redhat.com/show_bug.cgi?id=518569
The discussion surrounds potentially adding setcon function to vstfpd to drop level to a level appropriate the the user when he logs in. The discussion is around using MCS for this, but I guess I could see some utilization around MLS.
Not sure MLS would go for it though since there is a potential for information leak.
Comments?
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 9 lines · Daniel J Walsh
https://bugzilla.redhat.com/show_bug.cgi?id=518569
The discussion surrounds potentially adding setcon function to vstfpd to drop level to a level appropriate the the user when he logs in. The discussion is around using MCS for this, but I guess I could see some utilization around MLS.
Not sure MLS would go for it though since there is a potential for information leak.
I'm not sure I like it this idea, but I wanted to throw it out anyway:
why not just change to the user's complete login context (or a context that is a subset of it), rather than just the level?
Signature · 9 lines
Chris PeBenito Tresys Technology, LLC (410) 290-1411 x150 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 8 lines · Christopher J. PeBenito
Quoted 7 lines · Daniel J Walsh
https://bugzilla.redhat.com/show_bug.cgi?id=518569
The discussion surrounds potentially adding setcon function to vstfpd to drop level to a level appropriate the the user when he logs in. The discussion is around using MCS for this, but I guess I could see some utilization around MLS.
Quoted 6 lines
Quoted 2 lines
Not sure MLS would go for it though since there is a potential for information leak.
I'm not sure I like it this idea, but I wanted to throw it out anyway:
why not just change to the user's complete login context (or a context that is a subset of it), rather than just the level?
What happens if we just add pam_selinux entries to /etc/pam.d/vsftpd, and add a system_r:ftpd_t entry to the default_contexts configuration?
Signature · 8 lines
Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 12 lines · Stephen Smalley
Quoted 11 lines · Christopher J. PeBenito
Quoted 9 lines · Daniel J Walsh
https://bugzilla.redhat.com/show_bug.cgi?id=518569
The discussion surrounds potentially adding setcon function to vstfpd to drop level to a level appropriate the the user when he logs in. The discussion is around using MCS for this, but I guess I could see some utilization around MLS.
Not sure MLS would go for it though since there is a potential for information leak.
Quoted 6 lines
Quoted 3 lines
I'm not sure I like it this idea, but I wanted to throw it out anyway:
why not just change to the user's complete login context (or a context that is a subset of it), rather than just the level?What happens if we just add
pam_selinuxentries to/etc/pam.d/vsftpd, and add a system_r:ftpd_t entry to thedefault_contextsconfiguration?
Oh, obviously that only affects subsequent execve() calls. Which should help with e.g. executing /bin/ls, but not with direct accesses by the main daemon.
Signature · 8 lines
Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.