#[repr(u8)]pub enum NetlinkAuditSocketPermission {
Show 26 variants
Append = 0,
AuditAccess = 1,
Create = 2,
GetAttr = 3,
Ioctl = 4,
Lock = 5,
Map = 6,
Read = 7,
RelabelFrom = 8,
RelabelTo = 9,
SetAttr = 10,
Write = 11,
Accept = 12,
Bind = 13,
Connect = 14,
GetOpt = 15,
Listen = 16,
SendTo = 17,
SetOpt = 18,
Shutdown = 19,
Nlmsg = 20,
NlmsgRead = 21,
NlmsgReadPriv = 22,
NlmsgRelay = 23,
NlmsgTtyAudit = 24,
NlmsgWrite = 25,
}Expand description
Allow callers to use the kernel class & permission definitions.
Variants§
Append = 0
Permission to append to a file or socket.
AuditAccess = 1
Pseudo-permission used in dontaudit access-rules to allow access checks to be made
between specific sources & targets without generating audit logs.
Create = 2
Permission to create a file or socket.
GetAttr = 3
Permission to query attributes, including uid, gid and extended attributes.
Ioctl = 4
Permission to execute ioctls on the file or socket.
Lock = 5
Permission to set and unset file or socket locks.
Map = 6
Permission to map a file.
Read = 7
Permission to read content from a file or socket, as well as reading or following links.
RelabelFrom = 8
Permission checked against the existing label when updating a node’s security label.
RelabelTo = 9
Permission checked against the new label when updating a node’s security label.
SetAttr = 10
Permission to modify attributes, including uid, gid and extended attributes.
Write = 11
Permission to write contents to the file or socket.
Accept = 12
Permission to accept a connection.
Bind = 13
Permission to bind to a name.
Connect = 14
Permission to initiate a connection.
GetOpt = 15
Permission to get socket options.
Listen = 16
Permission to listen for connections.
SendTo = 17
Permission to send datagrams to the socket.
SetOpt = 18
Permission to set socket options.
Shutdown = 19
Permission to terminate connection.
Nlmsg = 20
Permission for nlmsg xperms.
NlmsgRead = 21
Permission to query status of audit service.
NlmsgReadPriv = 22
Permission to list auditing configuration rules.
NlmsgRelay = 23
Permission to send userspace audit messages to the audit service.
NlmsgTtyAudit = 24
Permission to control TTY auditing.
NlmsgWrite = 25
Permission to update the audit service configuration.
Implementations§
Trait Implementations§
Source§impl Clone for NetlinkAuditSocketPermission
impl Clone for NetlinkAuditSocketPermission
Source§fn clone(&self) -> NetlinkAuditSocketPermission
fn clone(&self) -> NetlinkAuditSocketPermission
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NetlinkAuditSocketPermission
impl Debug for NetlinkAuditSocketPermission
Source§impl From<CommonSocketPermission> for NetlinkAuditSocketPermission
impl From<CommonSocketPermission> for NetlinkAuditSocketPermission
Source§fn from(other: CommonSocketPermission) -> Self
fn from(other: CommonSocketPermission) -> Self
Source§impl From<NetlinkAuditSocketPermission> for KernelPermission
impl From<NetlinkAuditSocketPermission> for KernelPermission
Source§fn from(v: NetlinkAuditSocketPermission) -> Self
fn from(v: NetlinkAuditSocketPermission) -> Self
Source§impl Hash for NetlinkAuditSocketPermission
impl Hash for NetlinkAuditSocketPermission
Source§impl PartialEq for NetlinkAuditSocketPermission
impl PartialEq for NetlinkAuditSocketPermission
Source§fn eq(&self, other: &NetlinkAuditSocketPermission) -> bool
fn eq(&self, other: &NetlinkAuditSocketPermission) -> bool
self and other values to be equal, and is used by ==.impl Copy for NetlinkAuditSocketPermission
impl Eq for NetlinkAuditSocketPermission
impl StructuralPartialEq for NetlinkAuditSocketPermission
Auto Trait Implementations§
impl Freeze for NetlinkAuditSocketPermission
impl RefUnwindSafe for NetlinkAuditSocketPermission
impl Send for NetlinkAuditSocketPermission
impl Sync for NetlinkAuditSocketPermission
impl Unpin for NetlinkAuditSocketPermission
impl UnsafeUnpin for NetlinkAuditSocketPermission
impl UnwindSafe for NetlinkAuditSocketPermission
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more