Bug 1523630

Summary: p11-kit-trust shouldn't write to /usr
Product: [Fedora] Fedora Reporter: Kai Engert (:kaie) (inactive account) <kengert>
Component: p11-kitAssignee: Daiki Ueno <dueno>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dueno, kengert, klember, mpreisle, stefw, tmraz
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-01 10:21:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kai Engert (:kaie) (inactive account) 2017-12-08 12:41:53 UTC
Today it's possible to use write access through p11-kit-trust.so to write to the "Default Trust" token, which results in data being written into the /usr directory. (Requires root permission.)

I think it should never write to /usr, because:
- /usr may be read only on many systems
- /usr isn't supposed to get local system configuration,
  as the name implies it should limit to the default configuration
  (installed as part of RPM packages)

Comment 1 Fedora End Of Life 2018-02-20 15:26:56 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle.
Changing version to '28'.

Comment 2 Daiki Ueno 2018-03-01 10:21:31 UTC
This should be fixed in p11-kit-0.23.10-1.