public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
* CAP_AUDIT_CONTROL in RHEL4
@ 2007-06-26 18:09 Matthew Booth
  0 siblings, 0 replies; only message in thread
From: Matthew Booth @ 2007-06-26 18:09 UTC (permalink / raw)
  To: linux-audit


[-- Attachment #1.1: Type: text/plain, Size: 701 bytes --]

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

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-06-26 20:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-26 18:09 CAP_AUDIT_CONTROL in RHEL4 Matthew Booth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox