Bug 529827 - guest_u user not able to run ps
Summary: guest_u user not able to run ps
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2009-10-20 10:21 UTC by Petr Šplíchal
Modified: 2016-06-01 01:38 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2009-10-20 12:32:16 UTC

Attachments (Terms of Use)

Description Petr Šplíchal 2009-10-20 10:21:28 UTC
Description of problem:

User in guest_u role cannot find out what processes he is running
because he is denied to acces the /proc filesystem.

Version-Release number of selected component (if applicable):

Steps to Reproduce:
ps -Z
Actual results:
Error: /proc must be mounted
  To mount /proc at boot you need an /etc/fstab line like:
      /proc   /proc   proc    defaults
  In the meantime, run "mount /proc /proc -t proc"

Expected results:
LABEL                             PID TTY          TIME CMD
guest_u:guest_r:guest_t:s0      15094 tty2     00:00:00 bash
guest_u:guest_r:guest_t:s0      16577 tty2     00:00:00 ps

Additional info:

type=AVC msg=audit(1256033931.373:317): avc:  denied  { create } for  pid=15094 comm="bash" scontext=guest_u:guest_r:guest_t:s0 tcontext=guest_u:guest_r:guest_t:s0 tclass=netlink_audit_socket

type=SYSCALL msg=audit(1256033931.373:317): arch=40000003 syscall=102 success=no exit=-13 a0=1 a1=bfa64f00 a2=82da008 a3=1 items=0 ppid=1551 pid=15094 auid=502 uid=502 gid=502 euid=502 suid=502 fsuid=502 egid=502 sgid=502 fsgid=502 tty=tty2 ses=20 comm="bash" exe="/bin/bash" subj=guest_u:guest_r:guest_t:s0 key=(null)

Comment 1 Daniel Walsh 2009-10-20 12:32:16 UTC
Fixed in selinux-policy-3.6.32-29.fc12

Note You need to log in before you can comment on or make changes to this bug.