This file is indexed.

/usr/lib/python2.7/dist-packages/keysign/gpgmh.py is in gnome-keysign 0.9-1.

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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env python
#    Copyright 2016 Tobias Mueller <muelli@cryptobitch.de>
#
#    This file is part of GNOME Keysign.
#
#    GNOME Keysign is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    GNOME Keysign is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with GNOME Keysign.  If not, see <http://www.gnu.org/licenses/>.

import logging
import os  # The SigningKeyring uses os.symlink for the agent

# The UID object is used in one place, at least,
# to get display the name and email address.
# The Key object is returned from a few functions, so it's
# API is somewhat external.
from .gpgkey import Key, UID
log = logging.getLogger(__name__)


# We allow for disabling the gpgme based library for now,
# because it may turn out to be not working as well as expected.
# We also use the standard monkeysign module for now, because
# we know it better.  Expect that to change, though.
try:
    GPGME = int(os.environ.get("KEYSIGN_GPGME", 0))
    if GPGME:
        from . import gpgmeh as gpg
    else:
        from . import gpgmks as gpg
except ImportError:
    from . import gpgmks as gpg


# We expect these functions:
get_usable_keys = gpg.get_usable_keys
openpgpkey_from_data = gpg.openpgpkey_from_data
get_public_key_data = gpg.get_public_key_data
fingerprint_from_keydata = gpg.fingerprint_from_keydata
get_usable_secret_keys = gpg.get_usable_secret_keys
sign_keydata_and_encrypt = gpg.sign_keydata_and_encrypt