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: [patch] CUPS 1.2 SELinux policy changes...: msg#00084

Subject: Re: [patch] CUPS 1.2 SELinux policy changes...
Russell Coker wrote:
On Sunday 13 November 2005 00:18, Michael Sweet <mike@xxxxxxxxxx> wrote:
Please don't remove comments such as "this is not ideal, and allowing
setattr access to cupsd_etc_t is wrong".  That's a design flaw in cupsd,
eventually we want to fix it.  Removing the comment decreases the chance
of such a design flaw ever being corrected.
Well, given that the comment does not describe the "design flaw" in
enough detail to be useful, and that no one has posted this "design
flaw" to any of the CUPS forums or the STR page on the CUPS site, it
seemed like I was removing a comment that was confusing and
uninformative.

What is the design flaw?

The fact that cups requires write access to it's config directory and all config files.

I know some people would prefer to hand-edit all files and place printer
state data in 5 different places, however no one has proposed an
alternate location for these files that makes sense WRT to the FHS.

We are absolutely committed to making CUPS easy-to-use, which means
allowing programs (in particular cupsd, which can provide finer-grained
authorization/access control to the configuration data than selinux) to
edit those files.  CUPS also updates the printers.conf, classes.conf,
and subscriptions.conf files based on (persistent) state changes.

Anyways, I will update the comment to reflect this discussion.

........

On a related note, you have comments on a few other rules I'm not
clear on:

    # temporary solution, we need something better
    allow cupsd_t serial_device:chr_file rw_file_perms;

I'm guessing this refers to allowing write access to all serial ports?
Any thoughts/wishes on this end?  We've looked at a variety of schemes
to identifying serial printer ports - providing separate device links
would seem to be the simplest solution - but there would need to be
some standardization (i.e. Linux distributors need to use it) for it to
be effective.

    # for /var/lib/defoma
    allow cupsd_t var_lib_t:dir search;
    r_dir_file(cupsd_t, readable_t)

This appears to provide read/search access to files in /var/lib, but
I'm confused by the "defoma" bit?

    # lots of errors generated requiring the following
allow cupsd_t self:netlink_audit_socket { create_netlink_socket_perms nlmsg_relay };
    allow cupsd_t self:netlink_route_socket { r_netlink_socket_perms };

What errors are generated?  What programs are involved?  Why are we
allowing rather than fixing?

Thanks again for your feedback - I hope my next patch will be both
less invasive and more accurate... :)

--
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Publishing Software        http://www.easysw.com



<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