]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/sys/content_protection.h
xnu-3789.1.32.tar.gz
[apple/xnu.git] / bsd / sys / content_protection.h
index a4066e18431a5246cfd2907e55f296e3e76000f5..20eae8b310c83e765fd4219d66796d2269eb9417 100644 (file)
  * Protection classes vary in their restrictions on read/writability.  A is generally
  * the strictest, and D is effectively no restriction.
  */
+
+/* 
+ * dir_none forces new items created in the directory to pick up the mount point default
+ * protection level. it is only allowed for directories.
+ */
+#define PROTECTION_CLASS_DIR_NONE 0
+
 #define PROTECTION_CLASS_A 1
 #define PROTECTION_CLASS_B 2
 #define PROTECTION_CLASS_C 3
 #define PROTECTION_CLASS_E 5
 #define PROTECTION_CLASS_F 6
 
+/*
+ * This forces open_dprotected_np to behave as though the file were created with
+ * the traditional open(2) semantics.
+ */
+#define PROTECTION_CLASS_DEFAULT  (-1)
+
 #endif /* PRIVATE */
 
 #endif /* _SYS_CONTENT_PROTECTION_H_ */