Skip to contentSkip to conversation

id -Z subsumed by secon?

DISCUSSION Daniel J Walsh 4 participants 5 messages Aug 8, 2006 – Aug 9, 2006 SELinux security module

lore
Share & tools
lore
#0 lore raw
Quoted 15 lines
Quoted 7 lines · James Antill
Quoted 6 lines

No, what Steven was saying is that the label for execcon will be reset
on exec (after doing it's thing). To see this visually use "secon --self-exec" instead of id.

% secon
user: user_u

...

Thanks for the example.

Quoted 10 lines

By the way, doesn't secon make id's -Z option unnecessary? I'm planning not to include the 'id -Z' patches upstream, Instead, runcon (with neither CONTEXT nor COMMAND) will print the current security context -- to be analogous to how nice(1) works if you don't give it a command.

Any objection?

Yes I would like to maintain the idea of "-Z" being the way to view contexts. This makes it easy for a user to figure out how to see what context is being used. ls -Z, ps -Z, netstat -Z ...

--
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 21 lines · Daniel J Walsh
Quoted 21 lines
Quoted 7 lines · James Antill
Quoted 6 lines

No, what Steven was saying is that the label for execcon will be reset
on exec (after doing it's thing). To see this visually use "secon --self-exec" instead of id.

% secon
user: user_u

...

Thanks for the example.

By the way, doesn't secon make id's -Z option unnecessary? I'm planning not to include the 'id -Z' patches upstream, Instead, runcon (with neither CONTEXT nor COMMAND) will print the current security context -- to be analogous to how nice(1) works if you don't give it a command.

Quoted 10 lines
Quoted 4 lines

Any objection?

Yes I would like to maintain the idea of "-Z" being the way to view contexts. This makes it easy for
a user to figure out how to see what context is being used. ls -Z, ps -Z, netstat -Z ...

We are also using "id -Z" in our evaluation tests and would like to keep the option.

-Janak

Quoted 4 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.

#2 lore raw

stat's -Z/--context option is gone [Re: id -Z subsumed by secon?

Quoted 2 lines · Janak Desai
Quoted 1 line · Daniel J Walsh
Quoted 1 line

James Antill <[email protected]> wrote:

...

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

By the way, doesn't secon make id's -Z option unnecessary? I'm planning not to include the 'id -Z' patches upstream, Instead, runcon (with neither CONTEXT nor COMMAND) will print the current security context -- to be analogous to how nice(1) works if you don't give it a command.

Any objection?

Quoted 7 lines
Quoted 4 lines

Yes I would like to maintain the idea of "-Z" being the way to view contexts. This makes it easy for
a user to figure out how to see what context is being used. ls -Z, ps -Z, netstat -Z ...

We are also using "id -Z" in our evaluation tests and would like to keep the option.

Thanks for the feedback.
With all of those arguments, I don't have much of a choice, now do I? :)

Another FYI, stat's selinux-specific --context (-Z) will not
be included upstream.
It isn't really needed, after all. Support for --context and -Z will probably remain in Red Hat's version, as a warned-about no-op for a while. Instead, there is just one long format string and one short.
Each will include the selinux security context, if available.
And the new %C 'just works' -- at least on a system with selinux.

--
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
In reply to Daniel J Walsh
Quoted 9 lines · Daniel J Walsh
Quoted 9 lines

Thanks for the example.

By the way, doesn't secon make id's -Z option unnecessary? I'm planning not to include the 'id -Z' patches upstream, Instead, runcon (with neither CONTEXT nor COMMAND) will print the current security context -- to be analogous to how nice(1) works if you don't give it a command.

Quoted 10 lines
Quoted 4 lines

Any objection?

Yes I would like to maintain the idea of "-Z" being the way to view contexts. This makes it easy for
a user to figure out how to see what context is being used. ls -Z, ps -Z, netstat -Z ...

Jim - I didn't see a response on this so I thought I would go ahead and agree with Dan here. All of the "-Z" options have been documented for _years_ - removing them now would be a real hardship on users.

Karl

--
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 3 lines · Karl MacMillan

Jim - I didn't see a response on this so I thought I would go ahead and agree with Dan here. All of the "-Z" options have been documented for _years_ - removing them now would be a real hardship on users.

No need to worry :)
After the first reply I was convinced.

--
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.