This file is indexed.

/usr/sbin/ds_selinux_enabled is in 389-ds-base 1.3.7.10-1ubuntu1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
#! /usr/bin/python2

# BEGIN COPYRIGHT BLOCK
# Copyright (C) 2016 Red Hat, Inc.
# All rights reserved.
#
# License: GPL (version 3 or any later version).
# See LICENSE for details. 
# END COPYRIGHT BLOCK
#

# These are python 3 capable, but el7 doesn't have libsemanage-python3


import sys
import selinux
import semanage

# Returns 1 for true, 0 for false.

sys.exit(selinux.is_selinux_enabled())