This file is indexed.

/usr/share/system-config-lvm/utilities.py is in system-config-lvm 1.1.18-2ubuntu1.

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
24
25
26
27
28
29
30
from execute import execWithCapture, execWithCaptureErrorStatus, execWithCaptureStatus

cache_readlink_o = {}
cache_readlink_s = {}

def follow_links_to_target(path, paths=[]):
    global cache_readlink_o
    global cache_readlink_s
    
    if path.startswith("/") == False:
        return None
    
    if path not in cache_readlink_s:
      o, s = execWithCaptureStatus('/usr/bin/readlink', ['/usr/bin/readlink', '-e', path])
      cache_readlink_o[path] = o
      cache_readlink_s[path] = s
    else:
      s = cache_readlink_s[path]
      o = cache_readlink_o[path]

    if s == 0:
        word = o.strip()
        
        if word != path:
            paths.append(word)
            return follow_links_to_target(word, paths)
        else:
            return path
    else:
        return None