* api for getting setrans information
@ 2007-03-29 21:37 Ted X Toth
2007-03-30 10:16 ` Daniel J Walsh
2007-03-30 11:46 ` Stephen Smalley
0 siblings, 2 replies; 4+ messages in thread
From: Ted X Toth @ 2007-03-29 21:37 UTC (permalink / raw)
To: Daniel J Walsh, selinux
Are there apis to retrieve all of the categories and sensitivity levels
and to convert them into a human readable form?
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: api for getting setrans information
2007-03-29 21:37 api for getting setrans information Ted X Toth
@ 2007-03-30 10:16 ` Daniel J Walsh
2007-03-30 11:46 ` Stephen Smalley
1 sibling, 0 replies; 4+ messages in thread
From: Daniel J Walsh @ 2007-03-30 10:16 UTC (permalink / raw)
To: Ted X Toth; +Cc: selinux
Ted X Toth wrote:
> Are there apis to retrieve all of the categories and sensitivity
> levels and to convert them into a human readable form?
No, Not really, you either read the setrans.conf file directly, but
this would break if you used a different translation library (mitre).
Or you could attempt to exhaustively search the namespace using:
extern int selinux_raw_to_trans_context(security_context_t raw,,
security_context_t *
transp);
Which would have 16 * 1024! (Factorial) combinations. IE It would take
a long time.
If you call the functions and (raw == transp ) no translation.
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: api for getting setrans information
2007-03-29 21:37 api for getting setrans information Ted X Toth
2007-03-30 10:16 ` Daniel J Walsh
@ 2007-03-30 11:46 ` Stephen Smalley
2007-03-30 13:06 ` Ted X Toth
1 sibling, 1 reply; 4+ messages in thread
From: Stephen Smalley @ 2007-03-30 11:46 UTC (permalink / raw)
To: Ted X Toth; +Cc: Daniel J Walsh, selinux
On Thu, 2007-03-29 at 16:37 -0500, Ted X Toth wrote:
> Are there apis to retrieve all of the categories and sensitivity levels
> and to convert them into a human readable form?
Can you give more information on how you would use it, or what kind of
api you have used in the past for the same functionality? IOW, help
propose an api that meets your requirements, and we can work through how
to make it fit with SELinux.
--
Stephen Smalley
National Security Agency
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: api for getting setrans information
2007-03-30 11:46 ` Stephen Smalley
@ 2007-03-30 13:06 ` Ted X Toth
0 siblings, 0 replies; 4+ messages in thread
From: Ted X Toth @ 2007-03-30 13:06 UTC (permalink / raw)
To: Stephen Smalley; +Cc: Daniel J Walsh, selinux
Stephen Smalley wrote:
> On Thu, 2007-03-29 at 16:37 -0500, Ted X Toth wrote:
>
>> Are there apis to retrieve all of the categories and sensitivity levels
>> and to convert them into a human readable form?
>>
>
> Can you give more information on how you would use it, or what kind of
> api you have used in the past for the same functionality? IOW, help
> propose an api that meets your requirements, and we can work through how
> to make it fit with SELinux.
>
>
I was thinking about the newrole gui that we talked about at the SELinux
Symposium. The gui might have a dropdown list of categories and a
password entry field and it would exec a new window at level. I found
seobject.py and the setransRecords class which will probably work for my
purposes right now. I'm not sure if exposing all of the categories is an
issue.
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-03-30 13:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-29 21:37 api for getting setrans information Ted X Toth
2007-03-30 10:16 ` Daniel J Walsh
2007-03-30 11:46 ` Stephen Smalley
2007-03-30 13:06 ` Ted X Toth
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.