Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: selinux and udev ?: msg#00160

Subject: Re: selinux and udev ?
On 11/29/05, Stephen Smalley <sds@xxxxxxxxxxxxx> wrote:
> On Tue, 2005-11-29 at 11:51 -0500, Stephen Smalley wrote:
> > Random thought:  As udev only manages devices, why not run file_contexts
> > through a filter to extract /dev entries at policy build time, saving
> > the result as a file_contexts.dev file, and have udev use
> > matchpathcon_init() to select that file for its matching.  That would
> > then avoid having to process the entire file contexts configuration for
> > udev.
>
> An unscientific experiment, with a slightly modified matchpathcon util
> that lets me specify the file_contexts path:
>
> $ grep '^/dev' file_contexts > file_contexts.dev
> $ time ./matchpathcon -f file_contexts.dev /dev/ttyS0
> /dev/ttyS0      system_u:object_r:tty_device_t
>
> real    0m0.023s
> user    0m0.012s
> sys     0m0.008s
> $ time ./matchpathcon -f file_contexts /dev/ttyS0
> /dev/ttyS0      system_u:object_r:tty_device_t
>
> real    0m0.216s
> user    0m0.152s
> sys     0m0.064s
>
> Quite the difference, no?
>
Cool. I take it matchpathcon() is called approx. once per created
entry in /dev, etc. If so, 'du -a /dev | wc' reports about 310 entries
on my system.

If so, that would be noticable. ;)
   tom


--
Tom London



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    gcc.libstdc++.c...    solaris.opensol...    information-ret...    misc.misterhous...    web.catalyst.ge...    apache.webservi...    redhat.release....    hardware.lirc/2...    kernel.autofs/2...    technology.sust...    linux.vdr/2003-...    editors.lyx.gen...    org.user-groups...    netbsd.devel.pk...    xdg.devel/2004-...    version-control...    jakarta.slide.d...    debian.packages...    creativecommons...    ports.ppc.embed...    bug-tracking.bu...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe