pub enum NetlinkTcpDiagSocketPermission {
Nlmsg,
NlmsgRead,
NlmsgWrite,
Common(CommonSocketPermission),
}Expand description
A well-known “netlink_tcpdiag_socket” class permission in SELinux policy that has a particular meaning in policy enforcement hooks.
Variants§
Nlmsg
Permission for nlmsg xperms.
NlmsgRead
Permission to request information about a protocol.
NlmsgWrite
Permission to write netlink message.
Common(CommonSocketPermission)
Implementations§
Source§impl NetlinkTcpDiagSocketPermission
impl NetlinkTcpDiagSocketPermission
pub fn all_variants() -> impl Iterator<Item = Self>
Trait Implementations§
Source§impl ClassPermission for NetlinkTcpDiagSocketPermission
impl ClassPermission for NetlinkTcpDiagSocketPermission
fn class(&self) -> KernelClass
Source§impl Clone for NetlinkTcpDiagSocketPermission
impl Clone for NetlinkTcpDiagSocketPermission
Source§fn clone(&self) -> NetlinkTcpDiagSocketPermission
fn clone(&self) -> NetlinkTcpDiagSocketPermission
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl From<NetlinkTcpDiagSocketPermission> for KernelPermission
impl From<NetlinkTcpDiagSocketPermission> for KernelPermission
Source§fn from(v: NetlinkTcpDiagSocketPermission) -> Self
fn from(v: NetlinkTcpDiagSocketPermission) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NetlinkTcpDiagSocketPermission
impl PartialEq for NetlinkTcpDiagSocketPermission
Source§fn eq(&self, other: &NetlinkTcpDiagSocketPermission) -> bool
fn eq(&self, other: &NetlinkTcpDiagSocketPermission) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for NetlinkTcpDiagSocketPermission
impl StructuralPartialEq for NetlinkTcpDiagSocketPermission
Auto Trait Implementations§
impl Freeze for NetlinkTcpDiagSocketPermission
impl RefUnwindSafe for NetlinkTcpDiagSocketPermission
impl Send for NetlinkTcpDiagSocketPermission
impl Sync for NetlinkTcpDiagSocketPermission
impl Unpin for NetlinkTcpDiagSocketPermission
impl UnwindSafe for NetlinkTcpDiagSocketPermission
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
Mutably borrows from an owned value. Read more