ifdef policy blocks for different releases?
Miroslav Grepl
mgrepl at redhat.com
Mon Oct 26 07:38:29 UTC 2015
On 10/22/2015 06:54 AM, Douglas Brown wrote:
> Hi,
>
> Is there a way to write one policy for both RHEL 6 and RHEL 7?
>
> This sort of thing, but release based rather than distro:
>
> ifdef(`distro_redhat’,`
>
> optional_policy(`
>
> systemd_passwd_agent_exec($1)
> systemd_read_fifo_file_passwd_run($1)
>
> ‘)
>
> ‘)
>
> If not, could someone please point me in the direction of some best practices?
>
> Thanks,
> Doug
> --
> selinux mailing list
> selinux at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/selinux
>
You can use something like
ifdef(`distro_rhel6', `
...
')
--
Miroslav Grepl
Senior Software Engineer, SELinux Solutions
Red Hat, Inc.
More information about the selinux
mailing list