All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel J Walsh <dwalsh@redhat.com>
To: Karl MacMillan <kmacmillan@mentalrootkit.com>
Cc: SE Linux <selinux@tycho.nsa.gov>
Subject: Re: Allowing apache to read custom types
Date: Tue, 03 Jul 2007 13:13:10 -0400	[thread overview]
Message-ID: <468A83A6.90100@redhat.com> (raw)
In-Reply-To: <1183462997.21098.1.camel@localhost.localdomain>

Karl MacMillan wrote:
> On Mon, 2007-07-02 at 16:35 -0400, Daniel J Walsh wrote:
>   
>> Karl MacMillan wrote:
>>     
>>> I had a coworker ask about how to allow apache to read a custom type for
>>> a policy that he wrote. Essentially, the policy is not focused on web
>>> pages so it is not really ideal for the types to be generated from the
>>> apache templates. I couldn't find any interfaces to allow apache to read
>>> external types (I understand that these would be "reverse" interfaces -
>>> but it seems like the most convenient way).
>>>
>>> Am I just missing the best approach here?
>>>
>>> Karl
>>>
>>>
>>> --
>>> 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.
>>>   
>>>       
>> We could add an attribute
>>
>> apache_readable and an interface to define it.
>>
>> read_file_pattern(httpd_t,  apache_readable, apache_readable)
>> read_file_pattern(httpd_sys_script_t,  apache_readable, apache_readable)
>>
>>     
>
> And an interface to use it? Are there other "reverse" interfaces
> already?
>
> Karl
>
>   
All attribute interfaces are reverse interfaces.  If I say this is a 
logfile_type
Any domain that can access logfiles can now access it.  So I guess 
saying something is
apache_content_type would work the same.


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

      reply	other threads:[~2007-07-03 17:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-02 14:44 Allowing apache to read custom types Karl MacMillan
2007-07-02 20:35 ` Daniel J Walsh
2007-07-03 11:43   ` Karl MacMillan
2007-07-03 17:13     ` Daniel J Walsh [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=468A83A6.90100@redhat.com \
    --to=dwalsh@redhat.com \
    --cc=kmacmillan@mentalrootkit.com \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.