Han Wang a8725c7240 selinux: Fix Android specific configs handling in policydb_write()
Commit 6ea234c and fac0755 implements Android specific bits
for RTM_GETLINK and RTM_GETNEIGH{TBL}, but they are not
considered into policydb_write() function. As a result, if userspace
wants to dump /sys/fs/selinux/policy, kernel won't pass those bits
in config, and userspace cannot get correct config bits of loaded
policy. Fix it, similar to mls bits handling.

Fixes: 6ea234c74a60 ("ANDROID: selinux: modify RTM_GETLINK permission")
Fixes: fac07550bdac ("ANDROID: selinux: modify RTM_GETNEIGH{TBL}")
Change-Id: I9602fd7cfe2eefc0cbd79b96892369bd5d4af15d
Signed-off-by: Wang Han <wanghan1995315@gmail.com>
Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
2024-11-01 20:36:51 -03:00
..
2023-09-30 11:44:35 +00:00
2019-05-27 09:37:12 +02:00