Issue #15049 has been updated by James Turnbull.
Status changed from Unreviewed to Needs More Information
The fact uses:
<pre>
Facter.add("selinux") do
confine :kernel => :linux
setcode do
result = "false"
if FileTest.exists?("#{selinux_mount_point}/enforce")
if FileTest.exists?("/proc/self/attr/current")
if (File.read("/proc/self/attr/current") != "kernel\0")
result = "true"
end
end
end
result
end
end
</pre>
Are any of these tests changed in F17?
----------------------------------------
Bug #15049: selinux fact returns wrong value
https://projects.puppetlabs.com/issues/15049#change-65131
Author: John Florian
Status: Needs More Information
Priority: Normal
Assignee:
Category: library
Target version:
Keywords:
Branch:
Affected Facter version: 1.6.6
On a fresh Fedora 17 host:
<pre>
$ sestatus
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: enforcing
Mode from config file: enforcing
Policy MLS status: enabled
Policy deny_unknown status: allowed
Max kernel policy version: 26
$ facter selinux
false
$ rpm -q puppet facter ruby
puppet-2.7.13-1.fc17.noarch
facter-1.6.6-1.fc17.x86_64
ruby-1.9.3.194-11.fc17.x86_64
</pre>
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.