[PATCH] libsepol/cil: ibendportcon fails to resolve in CIL policy

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

 



Fix named ibendportcon context not resolving correctly.

Signed-off-by: Richard Haines <richard_c_haines@xxxxxxxxxxxxxx>
---
 libsepol/cil/src/cil_build_ast.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libsepol/cil/src/cil_build_ast.c b/libsepol/cil/src/cil_build_ast.c
index 4258b18..04492e5 100644
--- a/libsepol/cil/src/cil_build_ast.c
+++ b/libsepol/cil/src/cil_build_ast.c
@@ -4698,7 +4698,7 @@ int cil_gen_ibendportcon(__attribute__((unused)) struct cil_db *db, struct cil_t
 	}
 
 	if (!parse_current->next->next->next->cl_head) {
-		ibendportcon->context_str = parse_current->next->next->data;
+		ibendportcon->context_str = parse_current->next->next->next->data;
 	} else {
 		cil_context_init(&ibendportcon->context);
 
-- 
2.9.4




[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux