Bug 1271327 - contrary option "-d" and "-q" for setfiles can be specified at once.
contrary option "-d" and "-q" for setfiles can be specified at once.
Status: NEW
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: policycoreutils (Show other bugs)
All Linux
medium Severity medium
: rc
: ---
Assigned To: Vit Mojzis
Dalibor Pospíšil
Depends On:
  Show dependency treegraph
Reported: 2015-10-13 12:13 EDT by Dalibor Pospíšil
Modified: 2017-12-12 04:05 EST (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1098062
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Dalibor Pospíšil 2015-10-13 12:13:55 EDT
+++ This bug was initially created as a clone of Bug #1098062 +++

Customer Contact Name:
  Yasuyuki Kobayashi

Description of Problem:
  The man page of "setfiles" shows as below.
  According to the description, these options are contrary, but no descriptions about it are written.
  -d     show what specification matched each file.
  -q     suppress non-error output.

  When assigning both "-d" and "-q" options at once, non-error output is outputted.
  It seems that -d option works and -q does not work.
  # touch /tmp/file
  # cat spec_file
  /tmp/file -- unconfined_u:object_r:etc_t:s0
  # setfiles -d -q spec_file /tmp
  setfiles: /tmp/file matched by unconfined_u:object_r:etc_t:s0
  Please fix "setfiles" to handle option correctly or at least modify man page to describe explicitly what happen if both the "-d" and "-q" are specified.
Version-Release number of selected component:

How reproducible:

Step to Reproduce:
  1. see linked test

Note You need to log in before you can comment on or make changes to this bug.