6499d0b915209b670f8e337c4fe76a8be9fa6576Simo Sorce Simo Sorce <simo@redhat.com>
6499d0b915209b670f8e337c4fe76a8be9fa6576Simo Sorce Copyright (C) 2016 Red Hat
6499d0b915209b670f8e337c4fe76a8be9fa6576Simo Sorce This program is free software; you can redistribute it and/or modify
6499d0b915209b670f8e337c4fe76a8be9fa6576Simo Sorce it under the terms of the GNU General Public License as published by
6499d0b915209b670f8e337c4fe76a8be9fa6576Simo Sorce the Free Software Foundation; either version 3 of the License, or
6499d0b915209b670f8e337c4fe76a8be9fa6576Simo Sorce (at your option) any later version.
6499d0b915209b670f8e337c4fe76a8be9fa6576Simo Sorce This program is distributed in the hope that it will be useful,
6499d0b915209b670f8e337c4fe76a8be9fa6576Simo Sorce but WITHOUT ANY WARRANTY; without even the implied warranty of
6499d0b915209b670f8e337c4fe76a8be9fa6576Simo Sorce MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6499d0b915209b670f8e337c4fe76a8be9fa6576Simo Sorce GNU General Public License for more details.
6499d0b915209b670f8e337c4fe76a8be9fa6576Simo Sorce You should have received a copy of the GNU General Public License
6499d0b915209b670f8e337c4fe76a8be9fa6576Simo Sorce along with this program. If not, see <http://www.gnu.org/licenses/>.
6499d0b915209b670f8e337c4fe76a8be9fa6576Simo Sorce/* following code comes from gss-proxy's gp_selinux.h file */
6499d0b915209b670f8e337c4fe76a8be9fa6576Simo Sorce#define SELINUX_context_range_get context_range_get
6499d0b915209b670f8e337c4fe76a8be9fa6576Simo Sorce#else /* not HAVE_SELINUX */
6499d0b915209b670f8e337c4fe76a8be9fa6576Simo Sorce#define SELINUX_context_dummy_get(x) "<SELinux not compiled in>"
6499d0b915209b670f8e337c4fe76a8be9fa6576Simo Sorce#define SELINUX_context_str SELINUX_context_dummy_get
6499d0b915209b670f8e337c4fe76a8be9fa6576Simo Sorce#define SELINUX_context_type_get SELINUX_context_dummy_get
6499d0b915209b670f8e337c4fe76a8be9fa6576Simo Sorce#define SELINUX_context_user_get SELINUX_context_dummy_get
6499d0b915209b670f8e337c4fe76a8be9fa6576Simo Sorce#define SELINUX_context_role_get SELINUX_context_dummy_get
6499d0b915209b670f8e337c4fe76a8be9fa6576Simo Sorce#define SELINUX_context_range_get SELINUX_context_dummy_get
6499d0b915209b670f8e337c4fe76a8be9fa6576Simo Sorce#endif /* done HAVE_SELINUX */
6499d0b915209b670f8e337c4fe76a8be9fa6576Simo Sorce#else /* not HAVE_UCRED */
6499d0b915209b670f8e337c4fe76a8be9fa6576Simo Sorce#endif /* done HAVE_UCRED */
6499d0b915209b670f8e337c4fe76a8be9fa6576Simo Sorce#endif /* __SSSD_UTIL_CREDS_H__ */