Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
Apache/2.4.52 (Ubuntu)
Server IP : 192.168.1.1 & Your IP : 18.188.77.203
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3 /
dist-packages /
uaclient /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2024-09-18 19:49
api
[ DIR ]
drwxr-xr-x
2024-09-18 19:49
cli
[ DIR ]
drwxr-xr-x
2024-09-18 19:49
clouds
[ DIR ]
drwxr-xr-x
2024-09-18 19:49
daemon
[ DIR ]
drwxr-xr-x
2024-09-18 19:49
entitlements
[ DIR ]
drwxr-xr-x
2024-09-18 19:49
files
[ DIR ]
drwxr-xr-x
2024-09-18 19:49
http
[ DIR ]
drwxr-xr-x
2024-09-18 19:49
messages
[ DIR ]
drwxr-xr-x
2024-09-18 19:49
timer
[ DIR ]
drwxr-xr-x
2024-09-18 19:49
__init__.py
0
B
-rw-r--r--
2024-06-17 19:50
actions.py
14.26
KB
-rw-r--r--
2024-07-12 23:15
apt.py
34.27
KB
-rw-r--r--
2024-07-12 23:15
apt_news.py
8.32
KB
-rw-r--r--
2024-07-12 23:15
config.py
17.36
KB
-rw-r--r--
2024-07-12 23:15
contract.py
31.26
KB
-rw-r--r--
2024-07-12 23:15
contract_data_types.py
9.89
KB
-rw-r--r--
2024-06-17 19:50
data_types.py
10.27
KB
-rw-r--r--
2024-06-17 19:50
defaults.py
2.52
KB
-rw-r--r--
2024-06-17 19:50
event_logger.py
8.06
KB
-rw-r--r--
2024-06-17 19:50
exceptions.py
17.07
KB
-rw-r--r--
2024-07-12 23:15
gpg.py
836
B
-rw-r--r--
2024-06-17 19:50
livepatch.py
12.85
KB
-rw-r--r--
2024-06-17 19:50
lock.py
4.42
KB
-rw-r--r--
2024-06-17 19:50
log.py
4.69
KB
-rw-r--r--
2024-06-17 19:50
secret_manager.py
648
B
-rw-r--r--
2024-06-17 19:50
security_status.py
25.48
KB
-rw-r--r--
2024-07-12 23:15
snap.py
7.09
KB
-rw-r--r--
2024-07-13 22:58
status.py
28.42
KB
-rw-r--r--
2024-07-12 23:15
system.py
25.9
KB
-rw-r--r--
2024-07-18 15:20
types.py
308
B
-rw-r--r--
2024-06-17 19:50
upgrade_lts_contract.py
3.55
KB
-rw-r--r--
2024-07-12 23:15
util.py
15.46
KB
-rw-r--r--
2024-07-12 23:15
version.py
2.63
KB
-rw-r--r--
2024-07-18 15:20
yaml.py
840
B
-rw-r--r--
2024-06-17 19:50
Save
Rename
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)