Issue #15049 has been updated by Brian Ruth.
I'm not a ruby expert by far but the problem appears to be related to the
selinux_mount_point definition in the code block above. What appears to be
happening is that the variable data is misformed and fails the first file exist
test #{selinux_mount_point}/enforce. If I add a:
puts "#{selinux_mount_point}/enforce" before the referenced code block you get
the following on Fedora 17:
["/sys/fs/selinux"]/enforce
On Fedora 16 (same puppet version) it provides:
/sys/fs/selinux/enforce
I would guess this is a Ruby 1.9 change but I'm not familiar with Ruby enough
to resolve the issue.
----------------------------------------
Bug #15049: selinux fact returns wrong value
https://projects.puppetlabs.com/issues/15049#change-65225
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.