Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package cil for openSUSE:Factory checked in at 2026-12-05 19:09:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/cil (Old) and /work/SRC/openSUSE:Factory/.cil.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "cil" Sat Dec 5 19:09:55 2026 rev:9 rq:1402963 version:3.12 Changes: -------- --- /work/SRC/openSUSE:Factory/cil/cil.changes 2026-07-13 14:25:23.681935096 +0200 +++ /work/SRC/openSUSE:Factory/.cil.new.1340718/cil.changes 2026-12-05 19:11:24.728721522 +0100 @@ -1,0 +2,22 @@ +Thu Dec 3 09:00:36 UTC 2026 - Cathy Hu <[email protected]> + +- Update to version 3.12 + https://github.com/SELinuxProject/selinux/releases/tag/v3.12 + - Security/hardening changes: + - Added overflow, bounds and allocation checks across libsepol, + libsemanage, libselinux, checkpolicy and secilc. + - Development-relevant changes: + - Added fuzzers and bad-data tests for policy, module, CIL, file-context + and package processing; expanded fuzzing documentation and seed corpora. + - Notable bug fixes: + - secilc: Use size_t for file sizes +- Drop 1270622-Fix-double-free-in-secilcheck.patch (bsc#1270622), merged + upstream +- Source URLs: upstream tags are prefixed with "v" now + +------------------------------------------------------------------- +Wed Dec 2 13:07:50 UTC 2026 - Cathy Hu <[email protected]> + +- keyring: update bachradsusi.gpg for next release + +-------------------------------------------------------------------- Old: ---- 1270622-Fix-double-free-in-secilcheck.patch secilc-3.11.tar.gz secilc-3.11.tar.gz.asc New: ---- secilc-3.12.tar.gz secilc-3.12.tar.gz.asc ----------(Old B)---------- Old: - secilc: Use size_t for file sizes - Drop 1270622-Fix-double-free-in-secilcheck.patch (bsc#1270622), merged upstream ----------(Old E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ cil.spec ++++++ --- /var/tmp/diff_new_pack.d14QUG/_old 2026-12-05 19:11:25.646760210 +0100 +++ /var/tmp/diff_new_pack.d14QUG/_new 2026-12-05 19:11:25.648760295 +0100 @@ -17,17 +17,15 @@ Name: cil -Version: 3.11 +Version: 3.12 Release: 0 Summary: SELinux Common Intermediate Language compiler License: BSD-2-Clause Group: Development/Languages/Other URL: https://github.com/SELinuxProject/selinux -Source0: https://github.com/SELinuxProject/selinux/releases/download/%{version}/se%{name}c-%{version}.tar.gz -Source1: https://github.com/SELinuxProject/selinux/releases/download/%{version}/se%{name}c-%{version}.tar.gz.asc +Source0: https://github.com/SELinuxProject/selinux/releases/download/v%{version}/se%{name}c-%{version}.tar.gz +Source1: https://github.com/SELinuxProject/selinux/releases/download/v%{version}/se%{name}c-%{version}.tar.gz.asc Source2: cil.keyring -# PATCH-FIX-UPSTREAM 1270622-Fix-double-free-in-secilcheck.patch bsc#1270622 [email protected] -Patch0: 1270622-Fix-double-free-in-secilcheck.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: flex BuildRequires: libsepol-devel ++++++ cil.keyring ++++++ ++++ 626 lines (skipped) ++++ between cil.keyring ++++ and /work/SRC/openSUSE:Factory/.cil.new.1340718/cil.keyring ++++++ secilc-3.11.tar.gz -> secilc-3.12.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/secilc-3.11/VERSION new/secilc-3.12/VERSION --- old/secilc-3.11/VERSION 2026-07-01 18:51:05.000000000 +0200 +++ new/secilc-3.12/VERSION 2026-12-02 18:39:01.000000000 +0100 @@ -1 +1 @@ -3.11 +3.12 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/secilc-3.11/docs/cil_conditional_statements.md new/secilc-3.12/docs/cil_conditional_statements.md --- old/secilc-3.11/docs/cil_conditional_statements.md 2026-07-01 18:51:05.000000000 +0200 +++ new/secilc-3.12/docs/cil_conditional_statements.md 2026-12-02 18:39:01.000000000 +0100 @@ -46,7 +46,9 @@ Contains the run time conditional statements that are instantiated in the binary policy according to the computed boolean identifier(s) state. -[`call`](cil_call_macro_statements.md#call) statements are allowed within a [`booleanif`](cil_conditional_statements.md#booleanif), however the contents of the resulting macro must be limited to those of the [`booleanif`](cil_conditional_statements.md#booleanif) statement (i.e. [`allow`](cil_access_vector_rules.md#allow), [`auditallow`](cil_access_vector_rules.md#auditallow), [`dontaudit`](cil_access_vector_rules.md#dontaudit), [`typemember`](cil_type_statements.md#typemember), [`typetransition`](cil_type_statements.md#typetransition), [`typechange`](cil_type_statements.md#typechange) and the compile time [`tunableif`](cil_conditional_statements.md#tunableif) statement)). +[`call`](cil_call_macro_statements.md#call) statements are allowed within a [`booleanif`](cil_conditional_statements.md#booleanif), however the contents of the resulting macro must be limited to those of the [`booleanif`](cil_conditional_statements.md#booleanif) statement (i.e. [`allow`](cil_access_vector_rules.md#allow), [`auditallow`](cil_access_vector_rules.md#auditallow), [`dontaudit`](cil_access_vector_rules.md#dontaudit), [`allowx`](cil_access_vector_rules.md#allowx), [`auditallowx`](cil_access_vector_rules.md#auditallowx), [`dontauditx`](cil_access_vector_rules.md#dontauditx), [`typemember`](cil_type_statements.md#typemember), [`typetransition`](cil_type_statements.md#typetransition), [`typechange`](cil_type_statements.md#typechange) and the compile time [`tunableif`](cil_conditional_statements.md#tunableif) statement)). + +At least one `true` or `false` branch must be present. A branchless `(booleanif expression)` is invalid. Extended-permission rules in runtime conditionals require a target policy version that supports conditional extended permissions. **Statement definition:** @@ -170,6 +172,8 @@ If tunables are being treated as booleans (by using the CIL compiler command line parameter `-P` or `--preserve-tunables` flag), then only the statements allowed in a [`booleanif`](cil_conditional_statements.md#booleanif) block are allowed in a [`tunableif`](cil_conditional_statements.md#tunableif) block. Otherwise, [`tunable`](cil_conditional_statements.md#tunable) statements are not allowed in a [`tunableif`](cil_conditional_statements.md#tunableif) block. +At least one `true` or `false` branch must be present. + **Statement definition:** ```secil diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/secilc-3.11/docs/cil_type_statements.md new/secilc-3.12/docs/cil_type_statements.md --- old/secilc-3.11/docs/cil_type_statements.md 2026-07-01 18:51:05.000000000 +0200 +++ new/secilc-3.12/docs/cil_type_statements.md 2026-12-02 18:39:01.000000000 +0100 @@ -487,7 +487,7 @@ **Statement definition:** ```secil - (typetransition source_type_id target_type_id class_id [object_name] default_type_id) + (typetransition source_type_id target_type_id|self class_id [object_name] default_type_id) ``` **Where:** @@ -508,7 +508,7 @@ </tr> <tr class="odd"> <td align="left"><p><code>target_type_id</code></p></td> -<td align="left"><p>A single previously declared <code>type</code>, <code>typealias</code> or <code>typeattribute</code> identifier.</p></td> +<td align="left"><p>A single previously declared <code>type</code>, <code>typealias</code> or <code>typeattribute</code> identifier, or <code>self</code> to use each source type as its own target.</p></td> </tr> <tr class="even"> <td align="left"><p><code>class_id</code></p></td> @@ -516,7 +516,7 @@ </tr> <tr class="odd"> <td align="left"><p><code>object_name</code></p></td> -<td align="left"><p>A optional string within double quotes representing an object name for the 'name transition' rule. This string will be matched against the objects name (if a path then the last component of that path). If the string matches exactly, the <code>default_type_id</code> will then become the new type.</p></td> +<td align="left"><p>A optional string within double quotes representing an object name for the 'name transition' rule. This string will be matched against the objects name (if a path then the last component of that path). If the string matches exactly, the <code>default_type_id</code> will then become the new type. The special name <code>*</code>, including the quoted form <code>"*"</code>, instead produces an unnamed transition. CIL string literals do not process escapes, so a literal asterisk filename cannot be expressed this way.</p></td> </tr> <tr class="even"> <td align="left"><p><code>default_type_id</code></p></td> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/secilc-3.11/secil2conf.c new/secilc-3.12/secil2conf.c --- old/secilc-3.11/secil2conf.c 2026-07-01 18:51:05.000000000 +0200 +++ new/secilc-3.12/secil2conf.c 2026-12-02 18:39:01.000000000 +0100 @@ -66,7 +66,7 @@ FILE *file = NULL; char *buffer = NULL; struct stat filedata; - uint32_t file_size; + size_t file_size; char *output = NULL; struct cil_db *db = NULL; int mls = -1; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/secilc-3.11/secil2tree.c new/secilc-3.12/secil2tree.c --- old/secilc-3.11/secil2tree.c 2026-07-01 18:51:05.000000000 +0200 +++ new/secilc-3.12/secil2tree.c 2026-12-02 18:39:01.000000000 +0100 @@ -71,7 +71,7 @@ FILE *file = NULL; char *buffer = NULL; struct stat filedata; - uint32_t file_size; + size_t file_size; char *output = NULL; struct cil_db *db = NULL; int preserve_tunables = 0; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/secilc-3.11/secilc.c new/secilc-3.12/secilc.c --- old/secilc-3.11/secilc.c 2026-07-01 18:51:05.000000000 +0200 +++ new/secilc-3.12/secilc.c 2026-12-02 18:39:01.000000000 +0100 @@ -88,7 +88,7 @@ FILE *file = NULL; char *buffer = NULL; struct stat filedata; - uint32_t file_size; + size_t file_size; char *output = NULL; char *filecontexts = NULL; struct cil_db *db = NULL; @@ -100,7 +100,9 @@ int preserve_tunables = 0; int qualified_names = 0; int handle_unknown = -1; - int policyvers = POLICYDB_VERSION_MAX; + int policyvers = 0; + int policyvers_min = POLICYDB_VERSION_MIN; + int policyvers_max = POLICYDB_VERSION_MAX; int attrs_expand_generated = 0; int attrs_expand_size = -1; int optimize = 0; @@ -165,19 +167,12 @@ char *endptr = NULL; errno = 0; policyvers = strtol(optarg, &endptr, 10); - if (errno != 0 || endptr == optarg || *endptr != '\0') { + if (errno != 0 || endptr == optarg || *endptr != '\0' || + policyvers < 1) { fprintf(stderr, "Bad policy version: %s\n", optarg); usage(argv[0]); } - if (policyvers > POLICYDB_VERSION_MAX || - policyvers < POLICYDB_VERSION_MIN) { - fprintf(stderr, - "Policy version must be between %d and %d\n", - POLICYDB_VERSION_MIN, - POLICYDB_VERSION_MAX); - usage(argv[0]); - } break; } case 'U': @@ -252,6 +247,19 @@ usage(argv[0]); } + if (target == SEPOL_TARGET_XEN) { + policyvers_min = POLICYDB_XEN_VERSION_MIN; + policyvers_max = POLICYDB_XEN_VERSION_MAX; + } + + if (!policyvers) + policyvers = policyvers_max; + else if (policyvers < policyvers_min || policyvers > policyvers_max) { + fprintf(stderr, "Policy version must be between %d and %d\n", + policyvers_min, policyvers_max); + usage(argv[0]); + } + cil_set_log_level(log_level); cil_db_init(&db); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/secilc-3.11/secilcheck.c new/secilc-3.12/secilcheck.c --- old/secilc-3.11/secilcheck.c 2026-07-01 18:51:05.000000000 +0200 +++ new/secilc-3.12/secilcheck.c 2026-12-02 18:39:01.000000000 +0100 @@ -155,7 +155,6 @@ file_size = filedata.st_size; if (!file_size) { - fclose(file); rc = 0; goto exit; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/secilc-3.11/test/integration.cil new/secilc-3.12/test/integration.cil --- old/secilc-3.11/test/integration.cil 2026-07-01 18:51:05.000000000 +0200 +++ new/secilc-3.12/test/integration.cil 1970-01-01 01:00:00.000000000 +0100 @@ -1,224 +0,0 @@ -(type bin_t) -(type kernel_t) -(type security_t) -(type unlabeled_t) - -(policycap open_perms) -(sensitivity s0) -(sensitivity s1) -(sensitivityalias s0 sens0) -(dominance (s0 s1)) - -(category c0) -(category c1) -(category c2) -(categoryalias c0 cat0) -(categoryset cats01 (c0 c1)) -(categoryorder (c0 c1 c2)) -(categoryrange catrng02 (c0 c2)) - -(sensitivitycategory s0 (catrng02)) -(sensitivitycategory s1 cats01) -(sensitivitycategory s1 (c2)) - -(level low (s0 (c0))) -(level high (s1 (c0 c1))) -(levelrange low_high (low high)) - -(permissionset file_perms (execute_no_trans entrypoint execmod open - audit_access)) -(class file (execute_no_trans entrypoint execmod open audit_access)) -(class process (open)) -(common file (ioctl read write create getattr setattr lock relabelfrom - relabelto append unlink link rename execute swapon - quotaon mounton)) -(classcommon file file) - -(classpermissionset file_rw (file (read write getattr setattr lock append))) - -(class char (foo transition)) -(classcommon char file) - -(classpermissionset char_w (char (write setattr))) - -(classmap files (read)) -(classmapping files read - (file (open read getattr)) - char_w) - -(type auditadm_t) -(type console_t) -(type console_device_t) -(type user_tty_device_t) -(type device_t) -(type getty_t) -(type exec_t) - -(allow console_t console_device_t file_rw) -(allow console_t console_device_t (files (read))) - -(boolean secure_mode false) -(boolean console_login true) - - -(sid kernel) -(sid security) -(sid unlabeled) - -(typeattribute exec_type) -(typeattribute foo_type) -(typeattribute bar_type) -(typeattribute baz_type) -(typeattributeset exec_type (or bin_t kernel_t)) -(typeattributeset foo_type (and exec_type kernel_t)) -(typeattributeset bar_type (xor exec_type foo_type)) -(typeattributeset baz_type (not bin_t)) -(typealias bin_t sbin_t) -(typepermissive device_t) -(typeneveraudit device_t) -(typebounds device_t bin_t) -(typemember device_t bin_t file exec_t) -(typetransition device_t console_t file console_device_t) - -(rangetransition device_t console_t file low_high) - -(nametypetransition some_file device_t console_t file getty_t) - -(allow foo_type self (file (execute))) -(allow bin_t device_t (file (execute))) - -(booleanif secure_mode - (true - (auditallow device_t exec_t (file (read write))) - ) -) - -(booleanif console_login - (true - (typechange auditadm_t console_device_t file user_tty_device_t) - (allow getty_t console_device_t (file (getattr open read write append))) - ) - (false - (dontaudit getty_t console_device_t (file (getattr open read write append))) - ) -) - -(booleanif (not (xor (eq secure_mode console_login) - (and (or secure_mode console_login) secure_mode ) ) ) - (true - (allow bin_t exec_t (file (execute))) - ) -) - -(tunable allow_execfile true) -(tunable allow_userexec false) - -(tunableif (not (xor (eq allow_execfile allow_userexec) - (and (or allow_execfile allow_userexec) - (and allow_execfile allow_userexec) ) ) ) - (true - (allow bin_t exec_t (file (execute))) - ) -) - -(optional allow_rules - (allow user_t exec_t (bins (execute))) -) - -(dontaudit device_t auditadm_t (file (read))) -(auditallow device_t auditadm_t (file (open))) - -(user system_u) -(user user_u) -(userprefix user_u user) -(userprefix system_u user) - -(selinuxuser name user_u low_high) -(selinuxuserdefault user_u low_high) - -(role system_r) -(role user_r) - -(roletype system_r bin_t) -(roletype system_r kernel_t) -(roletype system_r security_t) -(roletype system_r unlabeled_t) -(roleallow system_r user_r) -(rolebounds system_r user_r) -(roletransition system_r bin_t process user_r) - -(userrole system_u system_r) -(userlevel system_u low) -(userrange system_u low_high) -(userbounds system_u user_u) -(userrole user_u user_r) -(userlevel user_u low) -(userrange user_u (low low)) - -(sidcontext kernel (system_u system_r kernel_t (low high))) -(sidcontext security (system_u system_r security_t (low high))) -(sidcontext unlabeled (system_u system_r unlabeled_t (low high))) - -(context system_u_bin_t_l2h (system_u system_r bin_t (low high))) - -(ipaddr ip_v4 192.25.35.200) -(ipaddr netmask 192.168.1.1) -(ipaddr ip_v6 2001:0DB8:AC10:FE01::) -(ipaddr netmask_v6 2001:0DE0:DA88:2222::) - -(filecon "/usr/bin/" "foo" file system_u_bin_t_l2h) -(filecon "/usr/bin/" "bar" file ()) -(filecon "/usr/bin/" "baz" any ()) -(nodecon ip_v4 netmask system_u_bin_t_l2h) -(nodecon ip_v6 netmask_v6 system_u_bin_t_l2h) -(portcon udp 25 system_u_bin_t_l2h) -(portcon tcp 22 system_u_bin_t_l2h) -(genfscon - "/usr/bin" system_u_bin_t_l2h) -(netifcon eth0 system_u_bin_t_l2h system_u_bin_t_l2h) ;different contexts? -(fsuse xattr ext3 system_u_bin_t_l2h) - -; XEN -(pirqcon 256 system_u_bin_t_l2h) -(iomemcon (0 255) system_u_bin_t_l2h) -(ioportcon (22 22) system_u_bin_t_l2h) -(pcidevicecon 345 system_u_bin_t_l2h) - -(constrain (files (read)) (not (or (and (eq t1 exec_t) (eq t2 bin_t)) (eq r1 r2)))) -(constrain char_w (not (or (and (eq t1 exec_t) (eq t2 bin_t)) (eq r1 r2)))) - -(constrain (file (read)) (or (and (eq t1 exec_t) (neq t2 bin_t) ) (eq u1 u2) ) ) -(constrain (file (open)) (dom r1 r2)) -(constrain (file (open)) (domby r1 r2)) -(constrain (file (open)) (incomp r1 r2)) - -(validatetrans file (eq t1 exec_t)) - -(mlsconstrain (file (open)) (not (or (and (eq l1 l2) (eq u1 u2)) (eq r1 r2)))) -(mlsconstrain (file (open)) (or (and (eq l1 l2) (eq u1 u2)) (neq r1 r2))) -(mlsconstrain (file (open)) (dom h1 l2)) -(mlsconstrain (file (open)) (domby l1 h2)) -(mlsconstrain (file (open)) (incomp l1 l2)) - -(mlsvalidatetrans file (domby l1 h2)) - -(macro all ((type x)) - (allow x bin_t (file (execute))) -) -(call all (bin_t)) - -(type a_t) -(type b_t) -(boolean b1 false) -(tunable tun1 true) -(macro m ((boolean b)) - (tunableif tun1 - (true - (allow a_t b_t (file (write)))) - (false - (allow a_t b_t (file (execute))))) - (booleanif b - (true - (allow a_t b_t (file (read)))))) - -(call m (b1)) - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/secilc-3.11/test/policy.cil new/secilc-3.12/test/policy.cil --- old/secilc-3.11/test/policy.cil 2026-07-01 18:51:05.000000000 +0200 +++ new/secilc-3.12/test/policy.cil 2026-12-02 18:39:01.000000000 +0100 @@ -130,6 +130,7 @@ (typealiasactual sbin_t bin_t) (typepermissive device_t) (typeneveraudit device_t) + (typebounds exec_t bad_t) (typemember device_t bin_t file exec_t) (typemember exec_type self file exec_t) (typetransition device_t console_t files console_device_t) @@ -232,6 +233,7 @@ (roletype exec_role bin_t) (roletype exec_role exec_type) (roleallow system_r user_r) + (rolebounds system_r baz_r) (roletransition system_r bin_t file user_r) (userrole foo_u foo_role) @@ -251,6 +253,7 @@ (userrange u5 low_high) (userrange u6 low_high) (userattributeset ua4 (u5 u6)) + (userbounds u5 u6) (userrole ua4 foo_role_a) (userrange foo_u low_high) @@ -301,7 +304,7 @@ ; InfiniBand (ibpkeycon fe80:: (0 0x10) system_u_bin_t_l2h) - (ibpkeycon fe80::7629:afff:fe0f:8e5d (15 25) (system_u system_r kernel_t (low (s3 (cats01 cats02))))) + (ibpkeycon fe80:0:0:7629:: (15 25) (system_u system_r kernel_t (low (s3 (cats01 cats02))))) (ibendportcon mlx5_0 1 system_u_bin_t_l2h) (ibendportcon mlx4_3 5 (system_u system_r kernel_t (low (s3 (cats01 cats02)))))
