RFE: provide hint if permissions do no allow any journal files to be opened
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 35/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- python
- Domaine
- operating-systems
Piste de recherche
Start with the Python systemd.journal.Reader() entry point and reproduce the CentOS permission case using this_boot(), log_level(), and get_next(). The change is complete when reading with no accessible journal files reports the insufficient-permissions condition instead of silently yielding empty results; the payload names no source file or test.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Reading from journald without permission to do so should throw an exception but doesn't?
build:~$ cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
build:~$
build:~$ groups
developers
build:~$
build:~$ journalctl --since "1 hour ago"
Hint: You are currently not seeing messages from other users and the system.
Users in the 'systemd-journal' group can see all messages. Pass -q to
turn off this notice.
No journal files were opened due to insufficient permissions.
build:~$
build:~$ python3.6
Python 3.6.3 (default, Jan 4 2018, 16:40:53)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>>
>>> from systemd import journal
>>> j = journal.Reader()
>>> j.this_boot()
>>> j.log_level(journal.LOG_DEBUG)
>>> j.get_next()
{}
>>> for entry in j:
... print(entry)
...
>>>
- Langage dominant
- C
- Étoiles
- 522
- Forks
- 79
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de systemd/python-systemd
-
Difficulté 3/5 1-2 jours Accessibilité débutants 48/100
systemd/python-systemd#177 · 1 commentaire · 1 réaction ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 42/100
systemd/python-systemd#169 · 1 commentaire ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
systemd/python-systemd#167 · 19 commentaires ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
systemd/python-systemd#152 · 1 commentaire · 13 réactions ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 45/100
systemd/python-systemd#146 · 2 commentaires ·
Toutes les issues de systemd/python-systemd
Issues similaires
-
task
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
vsanthanam/JBird#429 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
-
bug documentation
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
es-ude/OnDeviceTraining#459 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
bilelmoussaoui/gobject-linter#199 · 1 commentaire ·
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
bradcypert/plum#53 ·