From: cpebenito@tresys.com (Christopher J. PeBenito)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH v1] Changes to the miscfiles policy module
Date: Wed, 31 Oct 2012 10:43:17 -0400 [thread overview]
Message-ID: <50913905.2000509@tresys.com> (raw)
In-Reply-To: <1351625272.4200.12.camel@d30.localdomain>
On 10/30/12 15:27, Dominick Grift wrote:
> I changed this so that miscfiles policy module depends on it.
>
> I think this should take away your previous concerns.
>
> Can this be merged now?
This is actually the reverse of what I was saying. Miscfiles shouldn't be unconditionally depending on a higher layer module. I think the only solution is to have the cache type be in miscfiles so the files will be labeled right, even if mandb isn't installed.
> On Sun, 2012-10-14 at 18:31 +0200, dominick.grift at gmail.com wrote:
>> From: Dominick Grift <dominick.grift@gmail.com>
>>
>>
>> If you use the miscfiles policy module then you depend on the mandv policy module
>>
>> Change various miscfiles man interfaces to include relevant mandb
>> interface calls
>>
>> Signed-off-by: Dominick Grift <dominick.grift@gmail.com>
>> diff --git a/policy/modules/system/miscfiles.fc b/policy/modules/system/miscfiles.fc
>> index 9116567..016974b 100644
>> --- a/policy/modules/system/miscfiles.fc
>> +++ b/policy/modules/system/miscfiles.fc
>> @@ -77,7 +77,6 @@
>>
>> /var/cache/fontconfig(/.*)? gen_context(system_u:object_r:fonts_cache_t,s0)
>> /var/cache/fonts(/.*)? gen_context(system_u:object_r:tetex_data_t,s0)
>> -/var/cache/man(/.*)? gen_context(system_u:object_r:man_t,s0)
>>
>> /var/named/chroot/etc/pki(/.*)? gen_context(system_u:object_r:cert_t,s0)
>>
>> diff --git a/policy/modules/system/miscfiles.if b/policy/modules/system/miscfiles.if
>> index 926ba65..0a504f0 100644
>> --- a/policy/modules/system/miscfiles.if
>> +++ b/policy/modules/system/miscfiles.if
>> @@ -491,6 +491,8 @@
>>
>> allow $1 man_t:dir search_dir_perms;
>> files_search_usr($1)
>> +
>> + mandb_search_cache($1)
>> ')
>>
>> ########################################
>> @@ -531,6 +533,8 @@
>> allow $1 man_t:dir list_dir_perms;
>> read_files_pattern($1, man_t, man_t)
>> read_lnk_files_pattern($1, man_t, man_t)
>> +
>> + mandb_read_cache_content($1)
>> ')
>>
>> ########################################
>> @@ -557,6 +561,8 @@
>> delete_dirs_pattern($1, man_t, man_t)
>> delete_files_pattern($1, man_t, man_t)
>> delete_lnk_files_pattern($1, man_t, man_t)
>> +
>> + mandb_delete_cache_content($1)
>> ')
>>
>> ########################################
>> @@ -578,6 +584,8 @@
>> manage_dirs_pattern($1, man_t, man_t)
>> manage_files_pattern($1, man_t, man_t)
>> read_lnk_files_pattern($1, man_t, man_t)
>> +
>> + mandb_manage_cache_content($1)
>> ')
>>
>> ########################################
>
>
> _______________________________________________
> refpolicy mailing list
> refpolicy at oss.tresys.com
> http://oss.tresys.com/mailman/listinfo/refpolicy
>
--
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
next prev parent reply other threads:[~2012-10-31 14:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-14 16:31 [refpolicy] [PATCH v1] Changes to the miscfiles policy module dominick.grift at gmail.com
2012-10-30 19:27 ` Dominick Grift
2012-10-31 14:43 ` Christopher J. PeBenito [this message]
2012-10-31 14:52 ` Dominick Grift
-- strict thread matches above, loose matches on Subject: below --
2012-10-05 12:56 Dominick Grift
2012-10-09 14:14 ` Christopher J. PeBenito
2012-10-09 14:18 ` Dominick Grift
2012-10-09 14:20 ` Dominick Grift
2012-10-09 14:38 ` Dominick Grift
2012-10-09 14:57 ` Dominick Grift
2012-10-19 12:08 ` Christopher J. PeBenito
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=50913905.2000509@tresys.com \
--to=cpebenito@tresys.com \
--cc=refpolicy@oss.tresys.com \
/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.