Desktop apps interoperability
tom at lemuria.org
Mon Mar 28 13:11:26 UTC 2005
> > It doesn't. It treats $HOME as the only place that the user has
> > permission to store his stuff. On a well-configured system, that
> > assumption is correct.
> Ah, but that's not true. The user is actively encouraged to store stuff
> in $HOME, and not elsewhere, because:
Because there are many reasons for that. The most important ones
in my book are:
* other locations might be mounted read-only
* /home may be a remote (e.g. NFS) mount
* various standards define what /usr or /var are for, and storing
user-specific data is not on that list
* security - seperation between system and user data
That last one is the one that we don't want to break, on a SECURITY
ENHANCED Linux system least of all.
All your reasons except for #1 are really just consequences of the fact
that /home is where Unix users store their stuff.
> 6) From a SELinux viewpoint, why does the user domain *need* access
> to /home's setting part at all? Those are files created w/out direct
> user interaction. They could be made accessible to individual
> application domains, without user_t selinux access.
These are files that are totally created with user interaction. Just
because Joe Dummy doesn't vi his .muttrc doesn't mean that I don't.
It also saves us the headache of writing a policy for each and every
file that stores something in $HOME - which means pretty much
everything that has an options or settings dialog.
> Anyway, more to the point:
> 7) I can't call file_type_auto_trans twice on the same folder.
That is why I suggested a new folder for that specific purpose. I only
need one file_type_auto_trans there, namely when I store the stuff.
If I recall correctly, I had written a mozilla policy with such a
change a year or so ago.
> A) In the future if all desktop apps are restricted, this folder will
> have to become something more generic that doesn't have anything to do
> with downloads.
Are you insane?
Generic folders are the bane of anything even resembling security.
Being _specific_ is what SELinux is all about. That's what the ENHANCED
means, if you strip away all the bullshit bingo words. MAC and RBAC are
just the means used.
Downloads, especially, deserve to be treated differently, as they are
data from untrusted sources.
> It would become the equivalent of a new /home where you
> keep your files. Are there any plans to restrict desktop apps ?
"Do their intended operation" - no, I don't think there are any plans
to prevent that.
"Mess at will with anything else in $HOME" - why yes, absolutely. If my
movie player has any reasons reading my mail preferences, I really want
to know them.
> B) Whatever is decided upon needs to work out of the box. It needs to be
> the default way things work, as opposed to me having to jump through
> hoops to make SElinux work. Otherwise the average user will just disable
> any protection and not look back.
There will be hoops. Just like putting on the safety belt when getting
into your car is one.
I'm sure everyone involved in SELinux development wants to avoid
unnecessary hoops. But some will be necessary, just like a firewall,
two virus scanners and a yearly reinstall are necessary on today's
> This email was titled "Desktop apps interoperability". It implies that
> we're talking about the average desktop, as opposed to a paranoid
> environment. The average person does not know (or care) for evaluating
> security requirements and dealing with selinux. He/she wants
> transparency, but there's still value in using selinux.
The average person also doesn't want their home machine turned into a
spammer zombie. At the current growth rate, the average person will
soon be faced with a few hard choices. I mean, you can't seriously buy
Windows XP anymore, because you'll be infected with at least one malware
before the download of SP2 is finished. The only option is OEM versions
that already have at least SP2 applied.
> If you choose to download the content in question, and choose to run
> mplayer on it, then it seems to me that it should work without messing
> with security contexts.
Ah, but maybe you don't want mplayer to access everything you
In the long term, an explicit transfer (a nice GUI tool would make it
almost painless for the user. In fact, on a drag-and-drop desktop you
could probably add it to the drag&drop process) seems to be the better
pub 1024D/2D7A04F5 2002-05-16 Tom Vogt <tom at lemuria.org>
Key fingerprint = C731 64D1 4BCF 4C20 48A4 29B2 BF01 9FA1 2D7A 04F5
More information about the fedora-selinux-list