Re: ifdef policy blocks for different releases?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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', `	
...

')


-- 
Miroslav Grepl
Senior Software Engineer, SELinux Solutions
Red Hat, Inc.
--
selinux mailing list
selinux@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/selinux




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux