Skip to contentSkip to conversation

Desktop apps interoperability

DISCUSSION Casey Schaufler 5 participants 7 messages Mar 31, 2005 – Apr 1, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw
Quoted 4 lines · --- Ivan Gyurdiev
Quoted 2 lines · Casey Schaufler

--- Ivan Gyurdiev <[email protected]> wrote:

Quoted 8 lines
Quoted 1 line
Quoted 1 line

Ok, some apps like gift don't ask where to save

the

Quoted 4 lines
Quoted 2 lines

content,
but that's the exception and not the rule.

I challenge you to back up this claim.

I don't need to back up this claim, because:

Of course you don't need to back up the claim.

Quoted 3 lines

1) Apps that don't let you configure where to save your content are
badly designed.

This may be true, but the quality of design
is not an issue.

Quoted 1 line

2) They can be changed

Look here, sonny, I've been doing MLS systems
since 1986 and the One Truth You Must Learn
is that applications can not be changed. No.
Don't even consider thinking in this direction.
This is wrong. Sometimes all that's available
is the binary. Sometimes they like the way it
works.

Quoted 5 lines

3) If they're not changed, it doesn't matter, because what I'm proposing
is backwards compatible. User_t will still have access to all content
types, and can write stuff to /home as user_home_t.

But ...

Quoted 5 lines

Apps will have to be
specifically confined in order not to be able to write to user_home_t.
If some app is a problem, it can be left to run at user_home_t for now.

... then what's your whole point? I mean,
why this whole line about structuring where
user data goes?

Quoted 5 lines

4) If apps store stuff in a hardcoded location, we can label that easily
with the proper context, unless it's hardcoded to /home or some other
shared place.

You're right.

Quoted 3 lines

Anyway, I am starting to get a better idea as to how this might work -
see my response to Luke's message.

Will have a look. BTW, good work.
Don't let a dinosaur like me get in
your way of making things work right.

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.

#1 lore raw
Quoted 7 lines · Casey Schaufler

Look here, sonny, I've been doing MLS systems since 1986 and the One Truth You Must Learn is that applications can not be changed. No. Don't even consider thinking in this direction. This is wrong. Sometimes all that's available is the binary. Sometimes they like the way it works.

Ah, yes. That's certainly the example we should be following...the example set by past trusted/MLS OSes. No thanks, we're trying to solve real problems here...

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.
#2 lore raw
Quoted 11 lines · Stephen Smalley
Quoted 7 lines

Look here, sonny, I've been doing MLS systems since 1986 and the One Truth You Must Learn is that applications can not be changed. No. Don't even consider thinking in this direction. This is wrong. Sometimes all that's available is the binary. Sometimes they like the way it works.

Ah, yes. That's certainly the example we should be following...the example set by past trusted/MLS OSes. No thanks, we're trying to solve real problems here...

He does have a point, though - sometimes the application can not be changed. It may be a legacy application and for all I care, those are the ones most in need of a protective cage.

Signature · 8 lines
http://web.lemuria.org/pubkey.html
pub  1024D/2D7A04F5 2002-05-16 Tom Vogt <[email protected]>
     Key fingerprint = C731 64D1 4BCF 4C20 48A4  29B2 BF01 9FA1 2D7A 04F5

--
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.
#3 lore raw
Quoted 3 lines · Tom

He does have a point, though - sometimes the application can not be changed. It may be a legacy application and for all I care, those are the ones most in need of a protective cage.

Sure, and at that point, you just confine it as best as you can while still allowing whatever functionality you require. SELinux supports that need just fine. But you don't want to just accept that status quo for all applications for all time, which seemed to be Casey's attitude.

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.
#4 lore raw
Quoted 5 lines · Stephen Smalley
Quoted 3 lines · Tom

He does have a point, though - sometimes the application can not be changed. It may be a legacy application and for all I care, those are the ones most in need of a protective cage.

Unchangeable legacy apps should die.

Quoted 5 lines

Sure, and at that point, you just confine it as best as you can while still allowing whatever functionality you require. SELinux supports that need just fine. But you don't want to just accept that status quo for all applications for all time, which seemed to be Casey's attitude.

[snipped...]

I think everybody agrees that aggressive refactorization of source code is a good thing. Therefore in an open source environment legacy apps dont exist.

Signature · 7 lines
Blood is thicker than water... and much tastier
                                           John Davidorff Pell

--
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.
#5 lore raw
Quoted 5 lines · Rogelio Serrano
Quoted 3 lines
Quoted 3 lines

He does have a point, though - sometimes the application can not be changed. It may be a legacy application and for all I care, those are the ones most in need of a protective cage.

Unchangeable legacy apps should die.

Just like hunger and war, yes. The fact remains that they exist, and you and I have to work with (and/or around) them.

Now, you _can_ do binary patching or even runtime binary patching, you can overload system calls, you can do all sorts of dirty tricks to change the behaviour of an "unchangeable" app. In most cases that's non-trivial and it'll certainly mean you lose customer support.

SELinux is an excellent way to deal with these abominations and beat a little sense into them. Were you on the list 2 years ago or so, when I wrote policies for commercial Linux games? The audit log is an interesting read, you wouldn't _believe_ what they try to access for no obvious reason.

Signature · 8 lines
PGP/GPG key: http://web.lemuria.org/pubkey.html
pub  1024D/2D7A04F5 2002-05-16 Tom Vogt <[email protected]>
     Key fingerprint = C731 64D1 4BCF 4C20 48A4  29B2 BF01 9FA1 2D7A 04F5

--
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.
#6 lore raw
In reply to Casey Schaufler
Quoted 15 lines
Quoted 6 lines

3) If they're not changed, it doesn't matter, because what I'm proposing
is backwards compatible. User_t will still have access to all content
types, and can write stuff to /home as user_home_t.

But ...

Quoted 5 lines

Apps will have to be
specifically confined in order not to be able to write to user_home_t.
If some app is a problem, it can be left to run at user_home_t for now.

Quoted 3 lines

... then what's your whole point? I mean,
why this whole line about structuring where
user data goes?

Because then certain applications can be constrained further than they are constrained right now. They will be revoked privileges to user_home_t, and you will have a more secure system, since exploits of that app will not affect data in the user_home_t domain.

Specifically, the download folder is most important to implement, as the target folder for any potentially hostile content.

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.