summaryrefslogtreecommitdiff
path: root/src/file/homefile/userhomefile.cil
blob: a931d2aa6b3203a8a3bc8ef666e45f6da0b1de25 (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
(in file.unconfined
    (call .user.home.home_file_type_transition_file (typeattr dir "*")))

(in file.home
    (block user
        (macro type ((type ARG1))
            (typeattributeset typeattr ARG1))

        (typeattribute typeattr)

        (call .file.home.type (typeattr))
        (call .file.user.type (typeattr))
        (call .xattr.associate_fs (typeattr))
        (call .tmp.associate_fs (typeattr))

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

        (block template
            (blockabstract template)
            (blockinherit .file.home.user.base_template)
	    (blockinherit .file.macro_template_dirs)
	    (blockinherit .file.macro_template_files)
	    (blockinherit .file.macro_template_lnk_files))))

(in user
    (block home
        (macro home_file_type_transition_file ((type ARG1) (class ARG2) (name ARG3))
            (call .home.file_type_transition (ARG1 file ARG2 ARG3)))
        
        (blockinherit file.home.user.template)
        (filecon "HOME_DIR" dir file_context)
        (filecon "HOME_DIR/.*" any file_context)))