Re: Showing port Labels

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/14/2014 9:25 AM, Dominick Grift wrote:
> On Mon, 2014-07-14 at 08:58 -0400, Stephen Smalley wrote:
> < snip >
> 
>>> It is probably not the answer you were looking for but i suppose I would
>>> use seinfo --portcon
>>
>> sepolicy network -p <portnumber>
>>
>>
> 
> Yes, but i prefer minimal/small (and preferably no interpreters):
> 
> # file /usr/bin/seinfo
> /usr/bin/seinfo: ELF 64-bit LSB executable, x86-64, version 1 (SYSV),
> dynamically linked (uses shared libs), for GNU/Linux 2.6.32,
> BuildID[sha1]=04ae4e364753b502f227216e548e1ccbf0f33e14, stripped
> 
> # file /usr/bin/sepolicy
> /usr/bin/sepolicy: Python script, ASCII text executable, with very long
> lines

sepolicy is using libapol from setools, so its not really different than
seinfo, other than using a Python frontend.  Since SETools 4 is Python,
you'll eventually be running low on choices if you're trying to stick to
only C tools :)

-- 
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
_______________________________________________
Selinux mailing list
Selinux@xxxxxxxxxxxxx
To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx.
To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.




[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux