On 26 Oct 2015, at 5:38 pm, Miroslav Grepl <mgrepl@xxxxxxxxxx> wrote: > 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@xxxxxxxxxxxxxxxxxxxxxxx >> https://admin.fedoraproject.org/mailman/listinfo/selinux >> > > You can use something like > > ifdef(`distro_rhel6', ` > ... > > ‘) Excellent thanks, just what I was looking for. Cheers, Doug -- selinux mailing list selinux@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/selinux