When specifying wrong syntax in sudoers.d include files sudo throws a segmentation fault
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sudo (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I made a mistake and used a relative rather than absolute path to the application:
The following file placed in the /etc/sudoers.d causes a segmentation fault in when and sudo command is run.
/etc/sudoers.
#Allows reset_database to be called as user jacobus
jacobus ALL=NOPASSWD: systemctl stop freeradius
jacobus ALL=NOPASSWD: systemctl start freeradius
jacobus ALL=NOPASSWD: systemctl restart postgresql
ProblemType: Bug
DistroRelease: Ubuntu 20.10
Package: sudo 1.9.1-1ubuntu1
ProcVersionSign
Uname: Linux 5.8.0-33-generic x86_64
ApportVersion: 2.20.11-0ubuntu50.2
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Wed Dec 16 22:19:05 2020
InstallationDate: Installed on 2019-06-04 (561 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
SourcePackage: sudo
UpgradeStatus: Upgraded to groovy on 2020-10-25 (52 days ago)
VisudoCheck:
Error: command ['pkexec', '/usr/sbin/visudo', '-c'] failed with exit code 1: /etc/sudoers.
/etc/sudoers: parsed OK
/etc/sudoers.
/etc/sudoers.
/etc/sudoers.
modified.
modified.