apparmor_parser "hides" error message in help output

Bug #1437946 reported by Christian Boltz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
AppArmor
Fix Released
Undecided
Christian Boltz

Bug Description

# /sbin/apparmor_parser -r /etc/apparmor.d/bin.ping # running as _user_
/sbin/apparmor_parser: Sorry. You need root privileges to run this program.

AppArmor parser version 2.9.1
Copyright (C) 1999-2008 Novell Inc.
Copyright 2009-2012 Canonical Ltd.

Usage: /sbin/apparmor_parser [options] [profile]

Options:
--------
[...]

The parser errors out for obvious reasons, but why does it hide the
"You need root privileges" message behind the full --help details?

IMHO it should _only_ print the "You need root privileges" message.

BTW: The same happens for apparmor_parser --unknown-option.

BTW2: maybe you should also update the copyright year ;-)

Tags: aa-parser
Christian Boltz (cboltz)
Changed in apparmor:
assignee: nobody → Christian Boltz (cboltz)
Revision history for this message
Christian Boltz (cboltz) wrote :

Fixed in 2.13/2.15 (whatever version number we'll use), see https://gitlab.com/apparmor/apparmor/merge_requests/83

Changed in apparmor:
status: New → Fix Committed
Christian Boltz (cboltz)
Changed in apparmor:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.