summaryrefslogtreecommitdiff
path: root/meson.build
blob: ca22e41f60bc21b7744c389f975e586d53acce1c (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
project('spawns-policy', version: '0.0.1')

selinux_store = '/etc/selinux/spawns'
policy_version = '34'
secilc = find_program('secilc')
modules = files()

subdir('src')

file_contexts = custom_target(
    output: ['file_contexts', f'policy.@policy_version@'],
    input: modules,
    command: [secilc, '--optimize', '--mls', 'true', '@INPUT@'],
    install: true,
    install_dir: [
        selinux_store / 'contexts' / 'files',
        selinux_store / 'policy',
    ],
)

install_subdir('skel/contexts', install_dir: selinux_store)

if get_option('install_sources')
    install_data(
        modules,
        install_dir: get_option('datadir') / 'selinux' / 'spawns',
    )
endif