blob: 7c84c8d0b8b4609a4265a22eb0b5525d94eab0ae [file] [log] [blame]
;; -*- mode: CIL; fill-column: 79; indent-tabs-mode: nil; -*-
;; SPDX-FileCopyrightText: © 2021 Dominick Grift <dominick.grift@defensec.nl>
;; SPDX-License-Identifier: Unlicense
(in .dev
(call .framebuf.obj_type_transition_nodedev (unconfined.subj_typeattr)))
(block framebuf
;;
;; Contexts
;;
(filecon
"/dev/fb([0-9]+)?"
char
nodedev_file_context)
;;
;; Macros
;;
(macro obj_type_transition_nodedev ((type ARG1))
(call .tmp.fs_obj_type_transition
(ARG1 nodedev chr_file "fb0")))
;;
;; Policy
;;
(blockinherit .dev.node.obj_template))