In FC8 I would like to start playing with trusted X.
Supposedly The SELinux XExtensions are in FC7 and beyond so time to start using them.
But lets start simple ...
Some of you are looking at using Trusted X for MLS, but I want to look at this from a targeted policy point of view. What are the security goals of a normal Fedora user.
Lets establish two tangible goals.
1. Only the application with focus can get keyboard input. So if I am on a web page that is asking me for a password (On Line Banking) Only Firefox can read the input. Not Thunderbird. Theoretically I could run this with all apps mostly unconfined.firefox_t can capture input on firefox_t. While unconfined_t can not.
2. No apps except gimp can do a screen capture. Again I want all apps mostly unconfined My goal is to get a policy that prevents any app from screen capture including unconfined_t. Bug gimp_t in the unconfined domain can.
--
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 11 lines · Daniel J Walsh
Supposedly The SELinux XExtensions are in FC7 and beyond so time to start using them.
But lets start simple ...
Some of you are looking at using Trusted X for MLS, but I want to look at this from a targeted policy point of view. What are the security goals of a normal Fedora user. Lets establish two tangible goals.
1. Only the application with focus can get keyboard input. So if I am on a web page that is asking me for a password (On Line Banking) Only Firefox can read the input. Not Thunderbird. Theoretically I could run this with all apps mostly unconfined.
firefox_tcan capture input onfirefox_t. Whileunconfined_tcan not.
how many apps are you planning on confining for this goal? There are very important ones (like gnome-agent) and less important ones (firefox passwords that are stored on disk can be read by unconfined anyway)
Quoted 4 lines
2. No apps except gimp can do a screen capture. Again I want all apps mostly unconfined My goal is to get a policy that prevents any app from screen capture including
unconfined_t. Buggimp_tin the unconfined domain can.
I think you might run into some resistance here, there are dozens of programs that do screen captures (screensavers, any of the many screen capture programs, vnc server, etc)
And I bet (though I'm not sure) that an unconfined program could run gimp with the right command options to take a screen capture and save it to a file that would be accessible by said program.
--
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 · Joshua Brindle
Quoted 7 lines · Daniel J Walsh
Supposedly The SELinux XExtensions are in FC7 and beyond so time to start using them.
But lets start simple ...
Some of you are looking at using Trusted X for MLS, but I want to look at this from a targeted policy point of view. What are the security goals of a normal Fedora user. Lets establish two tangible goals.
Quoted 6 lines
Quoted 4 lines
1. Only the application with focus can get keyboard input. So if I am on a web page that is asking me for a password (On Line Banking) Only Firefox can read the input. Not Thunderbird. Theoretically I could run this with all apps mostly unconfined.
firefox_tcan capture input onfirefox_t. Whileunconfined_tcan not.how many apps are you planning on confining for this goal? There are very important ones (like gnome-agent) and less important ones (firefox passwords that are stored on disk can be read by unconfined anyway)
I am looking to experiment. Right now we supposedly have technology that no one is using. If I can prevent the case of entering my password for my online banking from any other app capturing keyboard input. I will sleep slightly better. I don't tell Firefox to recode this password.
gnome-agent would be another. I would like to be able to disallow all apps from capturing keyboard input without having focus, if possible.
Quoted 9 lines
Quoted 5 lines
2. No apps except gimp can do a screen capture. Again I want all apps mostly unconfined My goal is to get a policy that prevents any app from screen capture including
unconfined_t. Buggimp_tin the unconfined domain can.I think you might run into some resistance here, there are dozens of programs that do screen captures (screensavers, any of the many screen capture programs, vnc server, etc)
And I bet (though I'm not sure) that an unconfined program could run gimp with the right command options to take a screen capture and save it to a file that would be accessible by said program.
Yes, but at least we could begin to isolate these apps into unconfined_screencapture apps, and then certification people could start to eliminate these apps from being installed.
In order to get Trusted X to work for the Black opps people, we have to get it working for the targeted policy. Whether it is a small fence or a large fence...
--
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
Supposedly The SELinux XExtensions are in FC7 and beyond so time to start using them.
But lets start simple ...
Some of you are looking at using Trusted X for MLS, but I want to look at this from a targeted policy point of view. What are the security goals of a normal Fedora user.
Quoted 7 lines
Lets establish two tangible goals.
1. Only the application with focus can get keyboard input. So if I am on a web page that is asking me for a password (On Line Banking) Only Firefox can read the input. Not Thunderbird.
Theoretically I could run this with all apps mostly unconfined.firefox_tcan capture input onfirefox_t. Whileunconfined_tcan not.
This might go well, I'm not sure, and if it does would be a big plus :)
Quoted 5 lines
2. No apps except gimp can do a screen capture. Again I want all apps mostly unconfined
My goal is to get a policy that prevents any app from screen capture includingunconfined_t. Buggimp_tin the unconfined domain can.
You will need to include gnome-screenshot as well as gimp here though,
or a lot of people will complain (PrintScreen). With those two, this might be able to work (None of the gnome-screensaver actions try to take shots now, IIRC).
Signature · 1 line
James Antill <[email protected]>
Quoted 23 lines · James Antill
Quoted 4 lines · Daniel J Walsh
Supposedly The SELinux XExtensions are in FC7 and beyond so time to start using them.
But lets start simple ...
Quoted 8 lines
Some of you are looking at using Trusted X for MLS, but I want to look at this from a targeted policy point of view. What are the security goals of a normal Fedora user.
Lets establish two tangible goals.
1. Only the application with focus can get keyboard input. So if I am on a web page that is asking me for a password (On Line Banking) Only Firefox can read the input. Not Thunderbird. Theoretically I could run this with all apps mostly unconfined.
firefox_tcan capture input onfirefox_t. Whileunconfined_tcan not.This might go well, I'm not sure, and if it does would be a big plus :)
Quoted 4 lines
2. No apps except gimp can do a screen capture. Again I want all apps mostly unconfined My goal is to get a policy that prevents any app from screen capture including
unconfined_t. Buggimp_tin the unconfined domain can.
Quoted 6 lines
You will need to include gnome-screenshot as well as gimp here though,
or a lot of people will complain (PrintScreen). With those two, this might be able to work (None of the gnome-screensaver actions try to take shots now, IIRC).
Ok now I was hoping the NSA guys would hop in and say. Hey here is how you would do it. :^) Because I have no idea. Any help would be appreciated.
--
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 2 lines · Daniel J Walsh
Ok now I was hoping the NSA guys would hop in and say. Hey here is how you would do it. :^) Because I have no idea. Any help would be appreciated.
I've been slowly reviewing all of the 35 X protocol extensions of which I'm aware, trying to revise the set of object classes and permissions. I have about 8 more extensions to go. I'm hoping to do a major release of the security framework and Flask module before FC8.
I think the two goals you have set forth are a reasonable target. The input goal I don't think is possible with the current implementation, because the input extensions (XKB, XInput) are not covered by the security hooks. The screenshot goal should be possible. There are many screenshot apps but they all should call XCopyImage or similar, which are controllable. The problem is that the screenshot app gets a BadAccess error from the denial and Xlib calls abort; it's not very graceful.
Signature · 7 lines
Eamon Walsh <[email protected]> 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 8 lines · Eamon Walsh
Quoted 2 lines · Daniel J Walsh
Ok now I was hoping the NSA guys would hop in and say. Hey here is how you would do it. :^) Because I have no idea. Any help would be appreciated.
I've been slowly reviewing all of the 35 X protocol extensions of which I'm aware, trying to revise the set of object classes and permissions. I have about 8 more extensions to go. I'm hoping to do a major release of the security framework and Flask module before FC8.
I think the two goals you have set forth are a reasonable target. The input goal I don't think is possible with the current implementation, because the input extensions (XKB, XInput) are not covered by the security hooks. The screenshot goal should be possible. There are many screenshot apps but they all should call XCopyImage or similar, which are controllable. The problem is that the screenshot app gets a BadAccess error from the denial and Xlib calls abort; it's not very graceful.
That is what I figured. And in order to get upstream of Xorg to fix these problems, we have to start showing usefulness of the access control.
Quoted 2 lines
--
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
Quoted 7 lines · Eamon Walsh
Quoted 2 lines · Daniel J Walsh
Ok now I was hoping the NSA guys would hop in and say. Hey here is how you would do it. :^) Because I have no idea. Any help would be appreciated.
I've been slowly reviewing all of the 35 X protocol extensions of which I'm aware, trying to revise the set of object classes and permissions. I have about 8 more extensions to go. I'm hoping to do a major release of the security framework and Flask module before FC8.
I think the two goals you have set forth are a reasonable target. The input goal I don't think is possible with the current implementation, because the input extensions (XKB, XInput) are not covered by the security hooks. The screenshot goal should be possible. There are many screenshot apps but they all should call XCopyImage or similar, which are controllable. The problem is that the screenshot app gets a BadAccess error from the denial and Xlib calls abort; it's not very graceful.
That is what I figured. And in order to get upstream of Xorg to fix these problems, we have to start showing usefulness of the access control.
I have some ideas for demos to show the usefulness of the controls. Basically bring up a graffiti program that draws on other windows and show how it can be selectively stopped. Same thing with a program that monitors keyboard input. This doesn't have to be SELinux-based, it could be a simple DAC module with permission buttons on the window title bar. Just as soon as I finish my Big Spreadsheet of X Protocol and implement the support for the extensions...
Upstream Xorg is not really the problem though. The new XCB libraries have support for proper error handling. The problem is getting the toolkits and applications, GTK+ etc. to switch over from Xlib and/or actually check for errors on every request.
Signature · 7 lines
Eamon Walsh <[email protected]> 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 7 lines · Eamon Walsh
Quoted 6 lines · Daniel J Walsh
Quoted 5 lines · Eamon Walsh
Quoted 2 lines · Daniel J Walsh
Ok now I was hoping the NSA guys would hop in and say. Hey here is how you would do it. :^) Because I have no idea. Any help would be appreciated.
I've been slowly reviewing all of the 35 X protocol extensions of which I'm aware, trying to revise the set of object classes and permissions. I have about 8 more extensions to go. I'm hoping to do a major release of the security framework and Flask module before FC8.
Quoted 10 lines
Quoted 3 lines
Quoted 2 lines
I think the two goals you have set forth are a reasonable target. The input goal I don't think is possible with the current implementation, because the input extensions (XKB, XInput) are not covered by the security hooks. The screenshot goal should be possible. There are many screenshot apps but they all should call XCopyImage or similar, which are controllable. The problem is that the screenshot app gets a BadAccess error from the denial and Xlib calls abort; it's not very graceful.
That is what I figured. And in order to get upstream of Xorg to fix these problems, we have to start showing usefulness of the access control.
I have some ideas for demos to show the usefulness of the controls. Basically bring up a graffiti program that draws on other windows and show how it can be selectively stopped. Same thing with a program that monitors keyboard input. This doesn't have to be SELinux-based, it could be a simple DAC module with permission buttons on the window title bar. Just as soon as I finish my Big Spreadsheet of X Protocol and implement the support for the extensions...
Upstream Xorg is not really the problem though. The new XCB libraries have support for proper error handling. The problem is getting the toolkits and applications, GTK+ etc. to switch over from Xlib and/or actually check for errors on every request.
What is the current status of the xserver policy? Has it been upstreamed?
--
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 1 line · Ted X Toth
What is the current status of the xserver policy? Has it been upstreamed?
I did post refpolicy patches some months back but Chris identified some issues with them and since I am revisiting the object class/permission set I have not done further work on them.
Signature · 7 lines
Eamon Walsh <[email protected]> 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.