CAP_AUDIT_CONTROL in RHEL4

Matthew Booth mbooth at redhat.com
Tue Jun 26 18:09:34 UTC 2007


I've got my own process listening directly for audit events on the
netlink interface. I'd like to drop its privileges for normal operation.
However, under certain circumstances it has to enable or disable
auditing, which requires CAP_AUDIT_CONTROL. I can't work out how to
create a cap_t with this capability. I've tried:

cap_from_text("CAP_AUDIT_CONTROL=pe") and
cap_from_text("cap_audit_control=pe") and
cap_from_text("30=pe")

However in all cases I get EINVAL. What am I doing wrong?

Thanks,

Matt
-- 
Matthew Booth, RHCA, RHCSS
Red Hat, Global Professional Services

M:       +44 (0)7977 267231
GPG ID:  D33C3490
GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/linux-audit/attachments/20070626/ba824b72/attachment.sig>


More information about the Linux-audit mailing list