[libvirt PATCH 04/13] selinux: move selinux policy build helper to scripts directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The majority of build helper scripts live in this directory

Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
---
 scripts/meson.build                                            | 1 +
 .../compile_policy.py => scripts/selinux-compile-policy.py     | 0
 src/security/selinux/mcs/meson.build                           | 3 ++-
 src/security/selinux/meson.build                               | 1 -
 src/security/selinux/mls/meson.build                           | 3 ++-
 5 files changed, 5 insertions(+), 3 deletions(-)
 rename src/security/selinux/compile_policy.py => scripts/selinux-compile-policy.py (100%)

diff --git a/scripts/meson.build b/scripts/meson.build
index 421e3d2acd..6f766b3822 100644
--- a/scripts/meson.build
+++ b/scripts/meson.build
@@ -29,6 +29,7 @@ scripts = [
   'meson-timestamp.py',
   'mock-noinline.py',
   'prohibit-duplicate-header.py',
+  'selinux-compile-policy.py',
 ]
 
 foreach name : scripts
diff --git a/src/security/selinux/compile_policy.py b/scripts/selinux-compile-policy.py
similarity index 100%
rename from src/security/selinux/compile_policy.py
rename to scripts/selinux-compile-policy.py
diff --git a/src/security/selinux/mcs/meson.build b/src/security/selinux/mcs/meson.build
index 419253f151..113148851e 100644
--- a/src/security/selinux/mcs/meson.build
+++ b/src/security/selinux/mcs/meson.build
@@ -8,7 +8,8 @@ selinux_sources = [
 virt_pp = custom_target('virt.pp',
   output : 'virt.pp',
   input : selinux_sources,
-  command : [compile_policy_prog, '@INPUT@', '@OUTPUT@', 'selinux/mcs/tmp', 'mcs'],
+  command : [selinux_compile_policy_prog, '@INPUT@', '@OUTPUT@',
+             'selinux/mcs/tmp', 'mcs'],
   install : false)
 
 bzip = custom_target('virt.pp.bz2',
diff --git a/src/security/selinux/meson.build b/src/security/selinux/meson.build
index cf28769431..8db485a561 100644
--- a/src/security/selinux/meson.build
+++ b/src/security/selinux/meson.build
@@ -1,4 +1,3 @@
-compile_policy_prog = find_program('compile_policy.py')
 bzip2_prog = find_program('bzip2')
 
 install_data('virt.if', install_dir : 'share/selinux/devel/include/distributed')
diff --git a/src/security/selinux/mls/meson.build b/src/security/selinux/mls/meson.build
index 20bab41fea..7f3233f1bd 100644
--- a/src/security/selinux/mls/meson.build
+++ b/src/security/selinux/mls/meson.build
@@ -8,7 +8,8 @@ selinux_sources = [
 virt_pp_mls = custom_target('virt.pp',
   output : 'virt.pp',
   input : selinux_sources,
-  command : [compile_policy_prog, '@INPUT@', '@OUTPUT@', 'selinux/mls/tmp', 'mls'],
+  command : [selinux_compile_policy_prog, '@INPUT@', '@OUTPUT@',
+             'selinux/mls/tmp', 'mls'],
   install : false)
 
 bzip_mls = custom_target('virt.pp.bz2',
-- 
2.31.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux