scripts: ipe: polgen: remove redundant close and error exit pathCurrently if an fopen fails the error exit path is via code thatchecks if fp is not null and closes the file, however, fp is nullso
scripts: ipe: polgen: remove redundant close and error exit pathCurrently if an fopen fails the error exit path is via code thatchecks if fp is not null and closes the file, however, fp is nullso this check and close is redundant. Since the only use of theerr exit label is on the fopen check, remove it and replace thecode with a simple return of errno. Also remove variable rc sinceit's no longer required.Signed-off-by: Colin Ian King <colin.i.king@gmail.com>Signed-off-by: Fan Wu <wufan@kernel.org>
show more ...
scripts: add boot policy generation programEnables an IPE policy to be enforced from kernel start, enabling accesscontrol based on trust from kernel startup. This is accomplished bytransforming a
scripts: add boot policy generation programEnables an IPE policy to be enforced from kernel start, enabling accesscontrol based on trust from kernel startup. This is accomplished bytransforming an IPE policy indicated by CONFIG_IPE_BOOT_POLICY into ac-string literal that is parsed at kernel startup as an unsigned policy.Signed-off-by: Deven Bowers <deven.desai@linux.microsoft.com>Signed-off-by: Fan Wu <wufan@linux.microsoft.com>Signed-off-by: Paul Moore <paul@paul-moore.com>