All of lore.kernel.org
 help / color / mirror / Atom feed
From: "David Härdeman" <david@hardeman.nu>
To: dwalsh@redhat.com
Cc: selinux@tycho.nsa.gov
Subject: Some questions regarding RedHat refpolicy patches
Date: Mon, 4 Aug 2008 00:44:48 +0200	[thread overview]
Message-ID: <20080803224448.GA22709@hardeman.nu> (raw)

Going through the RedHat patches trying to find more stuff to send 
upstream for merge, I've come across a few things that I don't quite 
understand and I'd appreciate if someone could explain them to me :)

a)

There are quite a lot of changes like this:

--- ./upstream/refpolicy/policy/modules/apps/uml.fc     2008-08-03 12:31:17.000000000 +0200
+++ ./fedora/refpolicy/policy/modules/apps/uml.fc       2008-08-03 12:29:42.000000000 +0200
@@ -1,7 +1,7 @@
  #
  # HOME_DIR/
  #
-HOME_DIR/\.uml(/.*)?           gen_context(system_u:object_r:ROLE_uml_rw_t,s0)
+HOME_DIR/\.uml(/.*)?           gen_context(system_u:object_r:user_uml_rw_t,s0)

What is the purpose of these changes and is it something that makes 
sense upstream? The upstream SVN version seems to contain quite a lot of 
"ROLE" contexts already...then again, other parts of the patch do the 
reverse:

--- ./upstream/refpolicy/policy/modules/apps/mplayer.fc 2008-08-03 12:31:17.000000000 +0200
+++ ./fedora/refpolicy/policy/modules/apps/mplayer.fc   2008-08-03 12:29:42.000000000 +0200
@@ -10,4 +10,4 @@
  /usr/bin/mencoder      --      gen_context(system_u:object_r:mencoder_exec_t,s0)
  /usr/bin/xine          --      gen_context(system_u:object_r:mplayer_exec_t,s0)
  
-HOME_DIR/\.mplayer(/.*)?        gen_context(system_u:object_r:ROLE_mplayer_home_t,s0)
+HOME_DIR/\.mplayer(/.*)?        gen_context(system_u:object_r:user_mplayer_home_t,s0)


b)

There are also quite a lot of changes like this:

--- ./upstream/refpolicy/policy/modules/apps/awstats.if 2008-08-03 12:31:17.000000000 +0200
+++ ./fedora/refpolicy/policy/modules/apps/awstats.if   2008-05-15 15:10:34.000000000 +0200
@@ -33,7 +33,8 @@
  #
  interface(`awstats_cgi_exec',`
         gen_require(`
-               type httpd_awstats_script_exec_t, httpd_awstats_content_t;
+               type httpd_awstats_script_exec_t;
+               type httpd_awstats_content_t;

Are these only noise (and in that case, would you (Dan) like a patch to 
remove that noise) or something which is actually wanted upstream?


c)

A lot of changes only alter whitespace, would it be possible to avoid 
these by generating the fedora diff with the appropriate options to 
diff?


d)

Why does postgrey_t need to be able to restart apache? (and the same 
goes for many many other service module changes in the patch, such as 
canna, ldap, etc, etc)

-- 
David Härdeman

--
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:[~2008-08-03 22:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-03 22:44 David Härdeman [this message]
2008-08-04 13:16 ` Some questions regarding RedHat refpolicy patches Christopher J. PeBenito
2008-08-04 17:09 ` Daniel J Walsh

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=20080803224448.GA22709@hardeman.nu \
    --to=david@hardeman.nu \
    --cc=dwalsh@redhat.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.