summaryrefslogtreecommitdiff
path: root/src/file/runfile/userrunfile.cil
blob: 9dc65f9c2d140ff81a0b73fe5170c60f7fd4f17d (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
(in file.user
    (block run
        (macro type ((type ARG1))
            (typeattributeset typeattr ARG1))

        (typeattribute typeattr)

        (call .file.user.type (typeattr))
        (call .file.run.type (typeattr))

        (block base_template
            (blockabstract base_template)
            (blockinherit .file.user.base_template)
            (call .file.user.run.type (file)))

        (block template
            (blockabstract template)
            (blockinherit .file.user.run.base_template)
            (blockinherit .file.macro_template_files)
            (blockinherit .file.macro_template_dirs)
            (blockinherit .file.macro_template_sock_files))))

(block userrun
    (macro file_type_transition_file ((type ARG1) (name ARG2))
        (call .runuser.file_type_transition (ARG1 file dir ARG2)))
    
    (blockinherit .file.user.run.template)
    (filecon "/run/user/%{USERID}" dir file_context)
    (filecon "/run/user/%{USERID}/.*" any file_context))

(in file.unconfined
    (call .userrun.file_type_transition_file (typeattr "*")))