summaryrefslogtreecommitdiff
path: root/src/anoninode/secretmemanoninode.cil
blob: 5c414655235431e13e728b09b24a6e02c1a6acb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
;; SPDX-FileCopyrightText: © 2025 Dominick Grift <dominick.grift@defensec.nl>
;; SPDX-License-Identifier: Unlicense

(block secretmem

  (blockinherit anon_inode.template)

  (block anon_inode

    (macro type ((type ARG1))
	   (typeattributeset typeattr ARG1))

    (typeattribute typeattr)

    (blockinherit .anon_inode.all_macro_template_anon_inodes)

    (call .anon_inode.type (typeattr))

    (block base_template

      (blockabstract base_template)

      (blockinherit .anon_inode.base_template)

      (call .secretmem.anon_inode.type (anon_inode)))

    (block template

      (macro self_type_transition_anon_inode ((type ARG1))
	     (call self_type_transition
		   (ARG1 anon_inode "[secretmem]")))

      (blockabstract template)

      (blockinherit .anon_inode.macro_template_anon_inodes)

      (blockinherit .secretmem.anon_inode.base_template))))

(in anon_inode.unconfined

    (call .secretmem.self_type_transition_anon_inode (typeattr)))