Skip to contentSkip to conversation

SE Linux and /proc files

DISCUSSION Albert Cahalan 1 participant 1 message Sep 1, 2004 SELinux security module

lore
Share & tools
lore
#0 lore raw

At an extreme security level, users can't see processes running in other roles. At a low security level, they can.

How about a middle ground? I've been thinking of adding a new /proc file containing some basic data for procps. It wouldn't have EIP, ESP, WCHAN, and a few others that are quite revealing to an attacker. A list of items that would be enough for basic procps functionality is:

class   - scheduling class
cmd     - COMMAND, w/o args
cstime  - CPU time
cutime  - CPU time

euid
nice
nlwp - num threads
pcpu - %CPU (once implemented)
pgrp
ppid
priority
processor
resident
rtprio
ruid
sched - RT scheduling class
session
share - memory info
size
start_time
state
stime - CPU time
tgid
tid
tpgid
tty
utime - CPU time
vm_lock - locked mem (just need yes/no)
vm_rss
vm_size

Might this be useful?

Anything on that list more troublesome than cmd?

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.