package/refpolicy: fix build with samba
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Fri, 13 Aug 2021 14:47:22 +0000 (16:47 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 15 Aug 2021 15:58:34 +0000 (17:58 +0200)
commitdc894fca1cd9ba835bb49bf87899d2459e938c00
tree4481e93665b5e6ba8518af14dedef747c500d5ea
parent0eebfba38888209313837bc81a22a4b3bf11ada4
package/refpolicy: fix build with samba

Fix the following build failure with samba raised since commit
49f6b2f39ee23e3e53c0b001894644734b8338b6:

 Compiling targeted policy.31
 env LD_LIBRARY_PATH="/tmp/instance-5/output-1/host/lib:/tmp/instance-5/output-1/host/usr/lib" /tmp/instance-5/output-1/host/usr/bin/checkpolicy -c 31 -U deny -S -O -E policy.conf -o policy.31
 policy/modules/services/samba.te:399:ERROR 'type crack_db_t is not within scope' at token ';' on line 360232:
  allow smbd_t crack_db_t:dir { getattr search open };
 #line 399
 checkpolicy:  error(s) encountered while parsing configuration

Fixes:
 - http://autobuild.buildroot.org/results/ab7098948d1920e42fa587e07f0513f23ba7fc74

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/refpolicy/0005-policy-modules-services-samba.te-make-crack-optional.patch [new file with mode: 0644]