SELinuxProject / selinux-notebook

The SELinux Notebook
Other
520 stars 101 forks source link

RFE: remove a restriction about alias_id of type statement #8

Closed masatake closed 2 years ago

masatake commented 3 years ago

Alias identifiers in a type statement don't have to be declared by a typealias statement.

The alias identifiers in the type statement are treated as the same way as alias identifiers in a typealias statement. [1] and [2] show my study.

[1] Alias identifiers in a type statement is processed in add_aliases_to_type() called from define_type() in checkpolicy/policy_define.c. [2] Alias identifiers in a typealias statement is processed in add_aliases_to_type() called from define_typealias() in checkpolicy/policy_define.c.

Signed-off-by: Masatake YAMATO yamato@redhat.com

pcmoore commented 2 years ago

Thanks @masatake, adding @pebenito to help review the patch.

masatake commented 2 years ago

Could you merge this?

pcmoore commented 2 years ago

Merged via 5640d7aa7683b428ff1c2bf33bf8702b44351408.

Thanks for your contribution and patience @masatake; the holidays and a number of other issues meant it was difficult to find the time to revisit this PR but it is merge now. Thank you for your help.

masatake commented 2 years ago

Thank you!