All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] [PATCH 1/1] Remove the hard-coding of selinuxfs mountpoint
@ 2013-05-28  9:28 Qingtao Cao
  2013-06-05 17:35 ` Christopher J. PeBenito
  0 siblings, 1 reply; 6+ messages in thread
From: Qingtao Cao @ 2013-05-28  9:28 UTC (permalink / raw)
  To: refpolicy

Remove the hard-coding of selinuxfs mountpoint in Rules.monolithic,
especially since it has been relocated to /sys/fs/.

Signed-off-by: Qingtao Cao <qingtao.cao.au@gmail.com>
---
 Rules.monolithic | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Rules.monolithic b/Rules.monolithic
index 7c4d035..acac675 100644
--- a/Rules.monolithic
+++ b/Rules.monolithic
@@ -5,7 +5,8 @@
 
 # determine the policy version and current kernel version if possible
 pv := $(shell $(CHECKPOLICY) -V |cut -f 1 -d ' ')
-kv := $(shell cat /selinux/policyvers)
+selinuxfs_mnt = $(shell mount | grep selinuxfs | cut -f 3 -d ' ')
+kv := $(shell cat $(selinuxfs_mnt)/policyvers)
 
 # dont print version warnings if we are unable to determine
 # the currently running kernel's policy version
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [refpolicy] [PATCH 1/1] Remove the hard-coding of selinuxfs mountpoint
@ 2013-05-27  1:10 Qingtao Cao
  0 siblings, 0 replies; 6+ messages in thread
From: Qingtao Cao @ 2013-05-27  1:10 UTC (permalink / raw)
  To: refpolicy

Remove the hard-coding of selinuxfs mountpoint in Rules.monolithic,
especially since it has been relocated to /sys/fs/.

Signed-off-by: Qingtao Cao <qingtao.cao.au@gmail.com>
---
 Rules.monolithic | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Rules.monolithic b/Rules.monolithic
index 7c4d035..acac675 100644
--- a/Rules.monolithic
+++ b/Rules.monolithic
@@ -5,7 +5,8 @@
 
 # determine the policy version and current kernel version if possible
 pv := $(shell $(CHECKPOLICY) -V |cut -f 1 -d ' ')
-kv := $(shell cat /selinux/policyvers)
+selinuxfs_mnt = $(shell mount | grep selinuxfs | cut -f 3 -d ' ')
+kv := $(shell cat $(selinuxfs_mnt)/policyvers)
 
 # dont print version warnings if we are unable to determine
 # the currently running kernel's policy version
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-06-07  6:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-28  9:28 [refpolicy] [PATCH 1/1] Remove the hard-coding of selinuxfs mountpoint Qingtao Cao
2013-06-05 17:35 ` Christopher J. PeBenito
2013-06-06  4:29   ` Qingtao Cao
2013-06-06 13:29     ` Christopher J. PeBenito
2013-06-07  6:35       ` Qingtao Cao
  -- strict thread matches above, loose matches on Subject: below --
2013-05-27  1:10 Qingtao Cao

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.