Desktop apps interoperability
Quoted 27 lines · --- Ivan Gyurdiev
Quoted 2 lines · Casey Schaufler
Quoted 1 line · --- Ivan Gyurdiev
On Wed, 2005-03-30 at 07:05 -0800, Casey
Schaufler
Quoted 3 lines
Quoted 3 lines
wrote:
...Quoted 1 line
Quoted 1 line
Desktop apps will be restricted to only
access
Quoted 7 lines
Quoted 7 lines
the
Quoted 2 lines
Quoted 2 lines
appropriate one.
"Downloading" apps will be restricted todownload to
Quoted 3 lines
Quoted 1 line
untrusted_content_t.Am I the only one wary of a slippery slope
here?
Quoted 9 lines
Quoted 2 lines
What's the problem?
Unless I read your intent incorrectly (which is possible) you're talking about requiring the rearchitecting of the data storage schemes for every user application on the planet to accomodate the presence of DTE. And you're talking about it as if it might actually happen.
Quoted 3 lines
Do you have a better proposal for restricting
desktop applications
to minimum privilege?
Well, the old unix way was for them to run as a normal (unprivileged) user. No privilege, no problem, right?
OKay, I know that's not being helpful.
I am concerned about the way y'all are going about this. It appears that you are deriving policy from behavior and then suggesting changes to the behavior so that the policy makes sense. While this is consistant with commercial software development practice it is highly out of line with secure system development practice. The good reason to use policy derived from behavior is to avoid changing existing applications. If you are going to change the application you will better serve the community by deciding first what the policy ought to be then changing the application to suit it rather than doing the derive-tweek two step.
Quoted 7 lines
Nothing needs to be rearchitectured. The user just needs
to be made aware that this is where the documents belong, and
the app can't write all over the place like it would in a non-selinux
environment.
Yes, and I'm sure that you can do a configuration of most application defaults that will be good enough to demo. Application developers tend to have their own ideas regarding data storage and it is a bad idea for a system developer to interfere with said application developer's freedom to inovate.
Quoted 3 lines
Apps that still run in
user_twould be
unaffected until
their policy is changed.
But the policy change is being made for them, outside the program, by people who's needs the typical application developer is not considering. Back to my point, the policy mechanism needs to be either transparent to the application or integral to it.
Quoted 11 lines
Of course, I'm thinking in the future such folders would be prominently
displayed in Gnome with their own little icons, and their windows-style
names like "My Media" or whatever (which should not be the same
as the actual dir. name), and those would go in the Places menu or
something, and sound juicer for example would know to write there by
default as opposed to somewhere else.
Chuckle. I worked on a scheme much like this. On Unix. In 1980. It was not a popular product.
Quoted 7 lines
I guess this discussion now becomes more GNOME-oriented, now that I
think about it. Maybe I should go bother the GNOME people to see what
they think about adding content-specific folders to /home that we can
label with different contexts..
Yes.
Quoted 1 line
... or am I missing something fundamental here?
Is DTE application transparent or does it require modification to the applications? If the latter your proposals are reasonable but the whole DTE scheme is more sophisticated than it needs to be. If the former, you need to relax your expectations of application behavior and work harder on the policy you want to impose.
Casey Schaufler
[email protected]
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/
--
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 3 lines · Casey Schaufler
Well, the old unix way was for them to run as a normal (unprivileged) user. No privilege, no problem, right?
Did you miss the desktop talk at the SELinux symposium?
http://www.selinux-symposium.org/2005/presentations/session3/3-1-walters.pdf
Quoted 7 lines
Is DTE application transparent or does it require modification to the applications? If the latter your proposals are reasonable but the whole DTE scheme is more sophisticated than it needs to be. If the former, you need to relax your expectations of application behavior and work harder on the policy you want to impose.
TE (not DTE, different beast, ask me privately if you want a comparison paper) can operate transparently to the application, but you often can't achieve true least privilege without application modifications or changes in its conventional usage.
Signature · 8 lines
Stephen Smalley <[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 · Casey Schaufler
Yes, and I'm sure that you can do a configuration of most application defaults that will be good enough to demo. Application developers tend to have their own ideas regarding data storage and it is a bad idea for a system developer to interfere with said application developer's freedom to inovate.
... application developer's freedom to impose insecurity, through ignorance on the part of the app-developer, upon the users?
no offense intended: freedom in an abstract concept [e.g. "the american way"] _always_ has limits - laws / rules / policy is defined to confine that freedom, for good or worse.
l.
--
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 10 lines · Luke Kenneth Casson Leighton
Quoted 7 lines · Casey Schaufler
Yes, and I'm sure that you can do a configuration of most application defaults that will be good enough to demo. Application developers tend to have their own ideas regarding data storage and it is a bad idea for a system developer to interfere with said application developer's freedom to inovate.
Quoted 7 lines
... application developer's freedom to impose insecurity, through ignorance on the part of the app-developer, upon the users?
no offense intended: freedom in an abstract concept [e.g. "the american way"] _always_ has limits - laws / rules / policy is defined to confine that freedom, for good or worse.
I don't understand what this has to do with the application developer. This is a discussion of desktop applications that manipulate content relevant to the user - not internal settings. The settings that go under /home are another issue - that would require changing the app, but they don't have to be changed all at the same time.
All those apps *ask* you where to store the content. You create a document of some sort, and you have a choice of where to put it. This has nothing to do with the app developer. It's just another restriction imposed on the user. Hopefully there's a way to get away with it, while staying user-friendly. That's why I'm suggesting content folders be introduced and integrated w/ GNOME's Places menu, for example. That seems like a small first step to improving things... no?
Ok, some apps like gift don't ask where to save the content, but that's the exception and not the rule.
Signature · 8 lines
Ivan Gyurdiev <[email protected]> Cornell University -- 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.
There as been multiple instances on other lists where an "admin" or "developer" has been totally ignorant of any type of security practices. Cases of do as I will and roll with the punches. This
occurs on all platforms of development. Freedom of implementation
should also require some common sense. I like the content folders
Ivan suggested. That would save people like me who are attention
defficiet a more structured schema for their fresh systems ( and prob. save me a couple of hours on my own each build i have to do for myself ).
Signature · 1 line
Jim McCullough
Quoted 42 lines · Ivan Gyurdiev
Quoted 10 lines · Luke Kenneth Casson Leighton
Quoted 7 lines · Casey Schaufler
Yes, and I'm sure that you can do a configuration of most application defaults that will be good enough to demo. Application developers tend to have their own ideas regarding data storage and it is a bad idea for a system developer to interfere with said application developer's freedom to inovate.
Quoted 7 lines
... application developer's freedom to impose insecurity, through ignorance on the part of the app-developer, upon the users?
no offense intended: freedom in an abstract concept [e.g. "the american way"] _always_ has limits - laws / rules / policy is defined to confine that freedom, for good or worse.
I don't understand what this has to do with the application developer. This is a discussion of desktop applications that manipulate content relevant to the user - not internal settings. The settings that go under /home are another issue - that would require changing the app, but they don't have to be changed all at the same time.
All those apps *ask* you where to store the content. You create a document of some sort, and you have a choice of where to put it. This has nothing to do with the app developer. It's just another restriction imposed on the user. Hopefully there's a way to get away with it, while staying user-friendly. That's why I'm suggesting content folders be introduced and integrated w/ GNOME's Places menu, for example. That seems like a small first step to improving things... no?
Ok, some apps like gift don't ask where to save the content, but that's the exception and not the rule.
--
Ivan Gyurdiev <[email protected]>
Cornell University
Quoted 5 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.
--
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 6 lines · Jim McCullough
There as been multiple instances on other lists where an "admin" or "developer" has been totally ignorant of any type of security practices. Cases of do as I will and roll with the punches. This
occurs on all platforms of development. Freedom of implementation
should also require some common sense. I like the content folders Ivan suggested.
kdbfs. modelled on the MAC OS/X "finder". absolutely brilliant.
a pity its back-end is implemented in ocaml.
kdbfs is similar to famd / locate, only the author went a stage further and wrote a front-end that modifies the dialog boxes in KDE 3.2 [which i later ported to 3.3].
the reason i mention it is because its default installation assumes that there exists ~/Applications, ~/Music, ~/Pictures etc, ~/Documents, ~/Video.
what it does is, depending on the mime-type [file extension], it will present you with a file-save dialog box where there is NO CHOICE about where the [new] file you are saving goes. IT WILL be saved in ~/Music if it has a .mpg extension. IT WILL be saved in ~/Pictures if it has a .jpg extension.
you get the idea.
i loved it - but it wasn't integrated "enough" - unlike the MAC OS/X functionality it was trying to emulate.
and unfortunately it's not a half-way-house solution: recompiling openoffice.org to use it for example was not an option [no KDE extensions available at the time, will have to wait for OO 2.0 and _then_ specially recompile the KDE 3.3 or KDE 3.4 libs with the kdbfs patches... you get the idea]...
basically, if there existed a linux distro which had kdbfs "rolled out" as an option, then it would be worthwhile having a kdbfs.te which defined an option that then enforced saving of files in these specific locations.
l.
--
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 15 lines · Ivan Gyurdiev
Quoted 14 lines · Luke Kenneth Casson Leighton
Quoted 7 lines · Casey Schaufler
Yes, and I'm sure that you can do a configuration of most application defaults that will be good enough to demo. Application developers tend to have their own ideas regarding data storage and it is a bad idea for a system developer to interfere with said application developer's freedom to inovate.
... application developer's freedom to impose insecurity, through ignorance on the part of the app-developer, upon the users?
Quoted 5 lines
Quoted 3 lines
no offense intended: freedom in an abstract concept [e.g. "the american way"] _always_ has limits - laws / rules / policy is defined to confine that freedom, for good or worse.
I don't understand what this has to do with the application developer.
i must not understand the point, then.
Quoted 2 lines
This is a discussion of desktop applications that manipulate content relevant to the user - not internal settings.
i believe it started out as internal settings [someone suggested a ~/.etc / registry etc solution e.g. gconfd] or maybe that was a different thread. ... anyway.
Quoted 1 line
All those apps *ask* you where to store the content.
not necessarily - and, additionally, they typically have default locations where the content is asked to be stored, and the majority of users go "duhhhhhh, *click*".
esp. windows users, for whom "duhhhh, *click*" means it ends up in "My Documents", or "The Desktop", etc. etc. and then they bitch like hell because they can't _find_ anything.
Quoted 2 lines
Ok, some apps like gift don't ask where to save the content, but that's the exception and not the rule.
some apps don't ask - but the "default" location is just as important, imo, as not being asked at all.
l.
--
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
Quoted 4 lines
This is a discussion of desktop applications that manipulate content relevant to the user - not internal settings.
i believe it started out as internal settings [someone suggested a ~/.etc / registry etc solution e.g. gconfd] or maybe that was a different thread. ... anyway.
(Re-adding fedora-selinux-list to cc - why was it removed?)
It's another part of the same problem - the internal settings are mixed with the content, and that's bad. You can move the settings, move the content, or both. Since the second is easier, that's what I suggest be done to begin with - later something can be done about settings.
The content folders should exist whether or not SElinux is installed, as an organizational tool - there's no reason why mozilla should go and clutter up my /home folder whether or not SELinux is involved - I never liked that, which is why I always make a separate folder anyway, and put stuff there. Apps should be configured to store things at their particular content folder by default. Those folders should be in GNOME's Places menu.
The only controversial thing seems to be that I'm suggesting that they can *only* write there, the SElinux-imposed restriction.
I'm not sure that's such a huge problem.
Okay, here's how this is going to work - if you want to delete the preinstalled music content folder, and put your things somewhere else, music_content_t would be configured as a customizable context - all those contexts should be customizable. That means they survive a restorecon, among other things.
Then you can make a folder, and in nautilus you right click, and you see the SELinux content (dwalsh has a patch for that). Then I've wanted to modify that patch to have a drop-down box of customizable contexts for the user to choose from. I haven't gotten around to doing that yet, but I think you should be able to right click in nautilus, open up a drop-down box of contents, and pick: Media (media_content_t), or whatever. Then after that your app will be able to save to that folder too.
Signature · 8 lines
Ivan Gyurdiev <[email protected]> Cornell University -- 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
Okay, here's how this is going to work - if you want to delete the preinstalled music content folder, and put your things somewhere else,
music_content_twould be configured as a customizable context - all those contexts should be customizable. That means they survive a restorecon, among other things.
Quoted 8 lines
Then you can make a folder, and in nautilus you right click, and you see the SELinux content (dwalsh has a patch for that). Then I've wanted to modify that patch to have a drop-down box of customizable contexts for the user to choose from. I haven't gotten around to doing that yet, but I think you should be able to right click in nautilus, open up a drop-down box of contents, and pick: Media (
media_content_t), or whatever. Then after that your app will be able to save to that folder too.
Then for downloaded files, you can right-click and change their content to whatever you want (list of customizables), or double-click on the file, and GNOME does a mime-lookup on the file, and determines the proper handler, and the proper context for that handler (like the other person suggested)
Whenever you do that there could be a box saying something like:
"You are attempting to relabel potentially harmful content.
Are you sure you want to do this: Yes | No | Scan buttons
Checkbox: Do not ask again
Checkbox: Perform a virus scan when opening file of this type"
... or something like that
Signature · 8 lines
Ivan Gyurdiev <[email protected]> Cornell University -- 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.