#[repr(u32)]pub enum KernelClass {
Show 52 variants
AnonFsNode = 0,
Binder = 1,
BlkFile = 2,
Bpf = 3,
Capability = 4,
Capability2 = 5,
ChrFile = 6,
Dir = 7,
Fd = 8,
FifoFile = 9,
File = 10,
FileSystem = 11,
IcmpSocket = 12,
KeySocket = 13,
LnkFile = 14,
MemFdFile = 15,
NetlinkAuditSocket = 16,
NetlinkConnectorSocket = 17,
NetlinkCryptoSocket = 18,
NetlinkDnrtSocket = 19,
NetlinkFibLookupSocket = 20,
NetlinkFirewallSocket = 21,
NetlinkGenericSocket = 22,
NetlinkIp6FwSocket = 23,
NetlinkIscsiSocket = 24,
NetlinkKobjectUeventSocket = 25,
NetlinkNetfilterSocket = 26,
NetlinkNflogSocket = 27,
NetlinkRdmaSocket = 28,
NetlinkRouteSocket = 29,
NetlinkScsitransportSocket = 30,
NetlinkSelinuxSocket = 31,
NetlinkSocket = 32,
NetlinkTcpDiagSocket = 33,
NetlinkXfrmSocket = 34,
PacketSocket = 35,
PerfEvent = 36,
Process = 37,
Process2 = 38,
QipcrtrSocket = 39,
RawIpSocket = 40,
SctpSocket = 41,
Security = 42,
SockFile = 43,
Socket = 44,
System = 45,
TcpSocket = 46,
TunSocket = 47,
UdpSocket = 48,
UnixDgramSocket = 49,
UnixStreamSocket = 50,
VsockSocket = 51,
}Expand description
Allow callers to use the kernel class & permission definitions. A well-known class in SELinux policy that has a particular meaning in policy enforcement hooks.
Variants§
AnonFsNode = 0
The SELinux “anon_inode” object class.
Binder = 1
The SELinux “binder” object class.
BlkFile = 2
The SELinux “blk_file” object class.
Bpf = 3
The SELinux “bpf” object class.
Capability = 4
The SELinux “capability” object class.
Capability2 = 5
The SELinux “capability2” object class.
ChrFile = 6
The SELinux “chr_file” object class.
Dir = 7
The SELinux “dir” object class.
Fd = 8
The SELinux “fd” object class.
FifoFile = 9
The SELinux “fifo_file” object class.
File = 10
The SELinux “file” object class.
FileSystem = 11
The SELinux “filesystem” object class.
IcmpSocket = 12
“icmp_socket” class enabled via the “extended_socket_class” policy capability.
KeySocket = 13
The SELinux “key_socket” object class.
LnkFile = 14
The SELinux “lnk_file” object class.
MemFdFile = 15
The SELinux “memfd_file” object class.
NetlinkAuditSocket = 16
The SELinux “netlink_audit_socket” object class.
NetlinkConnectorSocket = 17
The SELinux “netlink_connector_socket” object class.
NetlinkCryptoSocket = 18
The SELinux “netlink_crypto_socket” object class.
NetlinkDnrtSocket = 19
The SELinux “netlink_dnrt_socket” object class.
NetlinkFibLookupSocket = 20
The SELinux “netlink_fib_lookup_socket” object class.
NetlinkFirewallSocket = 21
The SELinux “netlink_firewall_socket” object class.
NetlinkGenericSocket = 22
The SELinux “netlink_generic_socket” object class.
NetlinkIp6FwSocket = 23
The SELinux “netlink_ip6fw_socket” object class.
NetlinkIscsiSocket = 24
The SELinux “netlink_iscsi_socket” object class.
NetlinkKobjectUeventSocket = 25
The SELinux “netlink_kobject_uevent_socket” object class.
NetlinkNetfilterSocket = 26
The SELinux “netlink_netfilter_socket” object class.
NetlinkNflogSocket = 27
The SELinux “netlink_nflog_socket” object class.
NetlinkRdmaSocket = 28
The SELinux “netlink_rdma_socket” object class.
NetlinkRouteSocket = 29
The SELinux “netlink_route_socket” object class.
NetlinkScsitransportSocket = 30
The SELinux “netlink_scsitransport_socket” object class.
NetlinkSelinuxSocket = 31
The SELinux “netlink_selinux_socket” object class.
NetlinkSocket = 32
The SELinux “netlink_socket” object class.
NetlinkTcpDiagSocket = 33
The SELinux “netlink_tcpdiag_socket” object class.
NetlinkXfrmSocket = 34
The SELinux “netlink_xfrm_socket” object class.
PacketSocket = 35
The SELinux “packet_socket” object class.
PerfEvent = 36
The SELinux “perf_event” object class.
Process = 37
The SELinux “process” object class.
Process2 = 38
The SELinux “process2” object class.
QipcrtrSocket = 39
The SELinux “qipcrtr_socket” object class.
RawIpSocket = 40
The SELinux “rawip_socket” object class.
SctpSocket = 41
“sctp_socket” class enabled via the “extended_socket_class” policy capability.
Security = 42
The SELinux “security” object class.
SockFile = 43
The SELinux “sock_file” object class.
Socket = 44
The SELinux “socket” object class.
System = 45
The SELinux “system” object class.
TcpSocket = 46
The SELinux “tcp_socket” object class.
TunSocket = 47
The SELinux “tun_socket” object class.
UdpSocket = 48
The SELinux “udp_socket” object class.
UnixDgramSocket = 49
The SELinux “unix_dgram_socket” object class.
UnixStreamSocket = 50
The SELinux “unix_stream_socket” object class.
VsockSocket = 51
“vsock_socket” class enabled via the “extended_socket_class” policy capability.
Implementations§
Source§impl KernelClass
impl KernelClass
pub const fn permissions(&self) -> &'static [KernelPermission]
Trait Implementations§
Source§impl Clone for KernelClass
impl Clone for KernelClass
Source§fn clone(&self) -> KernelClass
fn clone(&self) -> KernelClass
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for KernelClass
impl Debug for KernelClass
Source§impl From<Cap2Class> for KernelClass
impl From<Cap2Class> for KernelClass
Source§impl From<CapClass> for KernelClass
impl From<CapClass> for KernelClass
Source§impl From<FileClass> for KernelClass
impl From<FileClass> for KernelClass
Source§impl From<FsNodeClass> for KernelClass
impl From<FsNodeClass> for KernelClass
Source§fn from(class: FsNodeClass) -> Self
fn from(class: FsNodeClass) -> Self
Source§impl From<SocketClass> for KernelClass
impl From<SocketClass> for KernelClass
Source§fn from(other: SocketClass) -> Self
fn from(other: SocketClass) -> Self
Source§impl Hash for KernelClass
impl Hash for KernelClass
Source§impl IntoBytes for KernelClasswhere
(): PaddingFree<Self, { _ }>,
impl IntoBytes for KernelClasswhere
(): PaddingFree<Self, { _ }>,
Source§impl PartialEq for KernelClass
impl PartialEq for KernelClass
Source§fn eq(&self, other: &KernelClass) -> bool
fn eq(&self, other: &KernelClass) -> bool
self and other values to be equal, and is used by ==.Source§impl VariantArray for KernelClass
impl VariantArray for KernelClass
impl Copy for KernelClass
impl Eq for KernelClass
impl Immutable for KernelClass
impl StructuralPartialEq for KernelClass
Auto Trait Implementations§
impl Freeze for KernelClass
impl RefUnwindSafe for KernelClass
impl Send for KernelClass
impl Sync for KernelClass
impl Unpin for KernelClass
impl UnsafeUnpin for KernelClass
impl UnwindSafe for KernelClass
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.§impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
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