diff mbox

libsepol/cil: ibendportcon fails to resolve in CIL policy

Message ID 20170612083110.5042-1-richard_c_haines@btinternet.com (mailing list archive)
State Not Applicable
Headers show

Commit Message

Richard Haines June 12, 2017, 8:31 a.m. UTC
Fix named ibendportcon context not resolving correctly.

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

Comments

James Carter June 12, 2017, 3:17 p.m. UTC | #1
On 06/12/2017 04:31 AM, Richard Haines wrote:
> Fix named ibendportcon context not resolving correctly.
> 
> Signed-off-by: Richard Haines <richard_c_haines@btinternet.com>

Applied.

Thanks,
Jim

> ---
>   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);
>   
>
diff mbox

Patch

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);