summaryrefslogtreecommitdiff
path: root/src/dev/nodedev/randomnodedev.cil
blob: c3b1cd670eab5efdccdb80fc11c7bbb7b1db3170 (plain)
1
2
3
4
5
6
7
8
9
10
11
;; SPDX-FileCopyrightText: © 2023 Dominick Grift <dominick.grift@defensec.nl>
;; SPDX-License-Identifier: Unlicense

(block random

  (filecon "/dev/random" char nodedev_context)
  (filecon "/dev/urandom" char nodedev_context)

  (blockinherit .nodedev.template)

  (call .rbacsep.exempt.obj.type (nodedev)))