mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
xen: flask: Restrict generated header to xen + tools
This isn't strictly necessary but since it is going to be exposed via tools/include in a later patch this will help prevent accidental leakage beyond the tools. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Wei Liu <wei.liu2@citrix.com> Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
This commit is contained in:
1 parent
f06c84e047
commit
de7fa4cefd
1 file changed
+2
@@ -28,6 +28,7 @@ BEGIN {
|
||||
|
||||
printf("#ifndef _SELINUX_FLASK_H_\n") > outfile;
|
||||
printf("#define _SELINUX_FLASK_H_\n") > outfile;
|
||||
printf("\n#if defined(__XEN__) || defined(__XEN_TOOLS__)\n") > outfile;
|
||||
printf("\n/*\n * Security object class definitions\n */\n") > outfile;
|
||||
printf("/* This file is automatically generated. Do not edit. */\n") > debugfile;
|
||||
printf("/*\n * Security object class definitions\n */\n") > debugfile;
|
||||
@@ -91,6 +92,7 @@ END {
|
||||
for (i = 0; i < 34; i++)
|
||||
printf(" ") > outfile;
|
||||
printf("%d\n", sid_value) > outfile;
|
||||
printf("\n#endif /* __XEN__ || __XEN_TOOLS__ */\n") > outfile;
|
||||
printf("\n#endif\n") > outfile;
|
||||
printf("};\n\n") > debugfile2;
|
||||
}'
|
||||
|
||||