Attached is a patch to dlopen libselinux from procps and call getpidcon. This patch is relative to procps-3.2.5-6.3 (from Fedora Updates). -Chad Stephen Smalley wrote: > > IIRC, at present, procps doesn't use libselinux at all; procps directly > reads /proc/pid/attr/current and displays that value, since procps > already deals directly with /proc/pid entries and the maintainer > preferred to avoid a dependency of procps on libselinux (but was willing > to accept a dlopen of libselinux if we were to create such a patch, as > long as procps continues to work in the absence of libselinux). Hence, > without further changes, procps won't perform any translation at all. > > -- > Stephen Smalley > National Security Agency >
Attachment:
procps-3.2.5-libselinux.patch
Description: Binary data