Re: merkaartor: annoying merkaartor.log in HOME
On Wed, 11 Sep 2019 18:40:24 +0400 Jerome BENOIT wrote: > each time I read an OSM data file with merkaartor, > a (very) annoying merkaartor.log is let in my HOME directory. > How can we get rid of it ? or get it elsewhere ? That's probably a question for the merkaartor folks. Short of that, that sounds like a job for logrotate. Or if you just want to get rid of or move them, a cron job. Or both: a cron job to move them, and a logrotate job to manage them. -- "When we talk of civilization, we are too apt to limit the meaning of the word to its mere embellishments, such as arts and sciences; but the true distinction between it and barbarism is, that the one presents a state of society under the protection of just and well-administered law, and the other is left to the chance government of brute force." - The Rev. James White, Eighteen Christian Centuries, 1889 Key fingerprint = 38DD CE9F 9725 42DD E29A EB11 7514 6D37 A332 10CB https://charlescurley.com
Re: merkaartor: annoying merkaartor.log in HOME
Hi. On Wed, Sep 11, 2019 at 06:40:24PM +0400, Jerome BENOIT wrote: > Hello List, > > each time I read an OSM data file with merkaartor, > a (very) annoying merkaartor.log is let in my HOME directory. > How can we get rid of it ? or get it elsewhere ? Create an apparmor profile for it, deny it creating the offending file. Update a profile as needed. Problem solved. Sample merkaartor profile attached, took me a minute to make it. Reco #include /usr/bin/merkaartor { #include #include #include #include #include deny owner /home/*/merkaartor.log w, /proc/sys/kernel/random/boot_id r, owner /home/*/.Xauthority r, owner /home/*/.cache/fontconfig/* r, owner /home/*/.config/** rwl, owner /home/*/.config/Merkaartor/* rwk, owner /home/*/.config/Merkaartor/Merkaartor.conf rw, owner /home/*/.config/fontconfig/fonts.conf r, owner /home/*/.merkaartor/* rw, }
merkaartor: annoying merkaartor.log in HOME
Hello List, each time I read an OSM data file with merkaartor, a (very) annoying merkaartor.log is let in my HOME directory. How can we get rid of it ? or get it elsewhere ? Thanks in advance, Jerome