summaryrefslogtreecommitdiff
path: root/src/dev/stordev/mtdstordev.cil
diff options
context:
space:
mode:
Diffstat (limited to 'src/dev/stordev/mtdstordev.cil')
-rw-r--r--src/dev/stordev/mtdstordev.cil14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/dev/stordev/mtdstordev.cil b/src/dev/stordev/mtdstordev.cil
new file mode 100644
index 0000000..f8338b8
--- /dev/null
+++ b/src/dev/stordev/mtdstordev.cil
@@ -0,0 +1,14 @@
+;; SPDX-FileCopyrightText: © 2023 Dominick Grift <dominick.grift@defensec.nl>
+;; SPDX-License-Identifier: Unlicense
+
+(block mtd
+
+ (filecon "/dev/mtd[0-9]+" char stordev_context)
+ (filecon "/dev/mtd[0-9]+ro" char stordev_context)
+ (filecon "/dev/mtdblock[0-9]+" block stordev_context)
+
+ (filecon "/dev/ubi[0-9]+_[0-9]+" char stordev_context)
+ (filecon "/dev/ubi_ctrl" char stordev_context)
+ (filecon "/dev/ubiblock[0-9]+_[0-9]+" block stordev_context)
+
+ (blockinherit .stordev.template))