This file is indexed.

/usr/share/denyhosts/DenyHosts/restricted.py is in denyhosts 2.10-2.

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

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
22
23
import os

from constants import RESTRICTED_USERNAMES

class Restricted:
    def __init__(self, prefs):
        self.filename = os.path.join(prefs['ETC_DIR'], RESTRICTED_USERNAMES)
        self.__data = set()
        self.load_restricted()

    def load_restricted(self):
        try:
            fp = open(self.filename, "r")
            for line in fp:
                line = line.strip()
                if not line: continue
                if line[0] == '#': continue
                self.__data.add(line)
        except IOError:
            pass

    def get_restricted(self):
        return self.__data