# File lib/puppet/util/selinux.rb, line 174
174:   def realpath(path)
175:     path, rest = Pathname.new(path), []
176:     path, rest = path.dirname, [path.basename] + rest while ! path.exist?
177:     File.join( path.realpath, *rest )
178:   end