Red Hat Bugzilla – Bug 865842
Users running mgo requires access to execute /proc/sys/kernel/hostname
Last modified: 2015-05-14 19:00:43 EDT
Description of problem:
This is coming from a forum thread:
There are a few users using http://labix.org/mgo which has hard-coded calls to /proc/sys/kernel/hostname (http://golang.org/src/pkg/os/sys_linux.go), and they need access to call it the same way as everything else calls /bin/hostname, but today, /proc/sys/kernel/hostname gets "permission denied".
Asked our SELinux experts for guidance on the least privileged way to do this.
The author of mgo has already resolved the issue in development and an upcoming release will resolve it.