Skip to content

Commit fd68b7c

Browse files
committed
Auto merge of #2094 - KentaTada:add-fsmagic-for-security, r=JohnTitor
Add definitions for security related MAGIC This commit adds definitions for security related MAGIC.
2 parents 105b99d + 6be7fa8 commit fd68b7c

File tree

1 file changed

+4
-0
lines changed
  • src/unix/linux_like/linux/gnu

1 file changed

+4
-0
lines changed

src/unix/linux_like/linux/gnu/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,9 @@ cfg_if! {
800800
pub const QNX6_SUPER_MAGIC: ::c_long = 0x68191122;
801801
pub const RDTGROUP_SUPER_MAGIC: ::c_long = 0x7655821;
802802
pub const REISERFS_SUPER_MAGIC: ::c_long = 0x52654973;
803+
pub const SECURITYFS_MAGIC: ::c_long = 0x73636673;
803804
pub const SELINUX_MAGIC: ::c_long = 0xf97cff8c;
805+
pub const SMACK_MAGIC: ::c_long = 0x43415d53;
804806
pub const SMB_SUPER_MAGIC: ::c_long = 0x0000517b;
805807
pub const SYSFS_MAGIC: ::c_long = 0x62656572;
806808
pub const TMPFS_MAGIC: ::c_long = 0x01021994;
@@ -852,7 +854,9 @@ cfg_if! {
852854
pub const QNX6_SUPER_MAGIC: ::c_uint = 0x68191122;
853855
pub const RDTGROUP_SUPER_MAGIC: ::c_uint = 0x7655821;
854856
pub const REISERFS_SUPER_MAGIC: ::c_uint = 0x52654973;
857+
pub const SECURITYFS_MAGIC: ::c_uint = 0x73636673;
855858
pub const SELINUX_MAGIC: ::c_uint = 0xf97cff8c;
859+
pub const SMACK_MAGIC: ::c_uint = 0x43415d53;
856860
pub const SMB_SUPER_MAGIC: ::c_uint = 0x0000517b;
857861
pub const SYSFS_MAGIC: ::c_uint = 0x62656572;
858862
pub const TMPFS_MAGIC: ::c_uint = 0x01021994;

0 commit comments

Comments
 (0)