On 14/01/17 11:41, Heinz Wiesinger wrote:
On Friday, 13 January 2017 23:20:07 CET Andrzej Telszewski wrote:
On 13/01/17 14:53, Matteo Bernardini wrote:
2017-01-13 14:40 GMT+01:00 Sebastien BALLET <slacker6...@gmail.com>:
Hello,
On a clean Slackware, /var/tmp permissions are set to 1777, but once
apache-tomcat is installed, permissions are changed to 755 which can lead
to issues. The attached patch fixes this issue.
thanks Sebastien, nice catch!
I just submitted it in my branch.
This raises question: aren't you admins using any kind of package
checking tool?
If not, would you be interested to have something?
If we came up with a list of requirements, I could cook something in C
(or C++), using libarchive.
Then, the error like the one above would be easily caught.
I'm using lintpkg [1] to check all of my packages. It does have some
permission checks, but not for /var/tmp, that's why it slipped through. Should
be easy enough to add though.
Grs,
Heinz
[1] https://github.com/pprkut/lintpkg
I had something like _lintpkg_ on my mind for some time.
It will probably happen one day that I will take the ideas from there
and code it in C.
BTW, for you (admins) it would make sense to replace /sbin/makepkg with
a wrapper that will first run the lint on not yet packaged directory,
and then call the real makepkg.
This would save a bit of a time, especially on bigger stuff.
Well, maybe you're already doing this ;-)
--
Best regards,
Andrzej Telszewski
_______________________________________________
SlackBuilds-users mailing list
SlackBuilds-users@slackbuilds.org
http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/