Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 528434 - net-misc/tlsdate: tlsdated init script creates cache dir with wrong permissions
Summary: net-misc/tlsdate: tlsdated init script creates cache dir with wrong permissions
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-06 13:04 UTC by Hanno Böck
Modified: 2014-11-06 16:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hanno Böck gentoo-dev 2014-11-06 13:04:02 UTC
The /etc/init.d/tlsdated init script creates the cache dir with wrong permissions:
	checkpath -d -m 0700 "${TLSDATED_CACHE_DIR}"

This is root-only. However tlsdated drops privileges to user/group tlsdate:tlsdate.

Should be:
	checkpath -d -m 0700 -o tlsdate:tlsdate "${TLSDATED_CACHE_DIR}"
Comment 1 SpanKY gentoo-dev 2014-11-06 16:00:31 UTC
should be all set now in the tree; thanks for the report!

Commit message: Version bump & fix cache dir ownership
http://sources.gentoo.org/net-misc/tlsdate/files/tlsdated.rc?r1=1.1&r2=1.2
http://sources.gentoo.org/net-misc/tlsdate/tlsdate-0.0.12.ebuild?rev=1.1