<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gocryptfs/daemonize.go, branch xattr_user_buffer</title>
<subtitle>Mirror of gocryptfs source code on Github</subtitle>
<id>http://nuetzlich.net/cgit/gocryptfs/atom?h=xattr_user_buffer</id>
<link rel='self' href='http://nuetzlich.net/cgit/gocryptfs/atom?h=xattr_user_buffer'/>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/'/>
<updated>2024-05-17T20:14:37+00:00</updated>
<entry>
<title>daemonize: fix typo in comment</title>
<updated>2024-05-17T20:14:37+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2024-05-17T20:14:37+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=72ec4b005bdf2ee54945485dbd3a8bc07ef3d454'/>
<id>urn:sha1:72ec4b005bdf2ee54945485dbd3a8bc07ef3d454</id>
<content type='text'>
</content>
</entry>
<entry>
<title>go mod: declare module version v2</title>
<updated>2021-08-23T13:05:15+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2021-08-23T13:05:15+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=69d88505fd7f4cb0d9e4f1918de296342fe05858'/>
<id>urn:sha1:69d88505fd7f4cb0d9e4f1918de296342fe05858</id>
<content type='text'>
Our git version is v2+ for some time now, but go.mod
still declared v1. Hopefully making both match makes
https://pkg.go.dev/github.com/rfjakob/gocryptfs/v2 work.

All the import paths have been fixed like this:

  find . -name \*.go | xargs sed -i s%github.com/rfjakob/gocryptfs/%github.com/rfjakob/gocryptfs/v2/%
</content>
</entry>
<entry>
<title>main: drop hardcoded /usr/bin/logger path</title>
<updated>2018-11-17T16:03:11+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2018-11-17T16:03:11+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=d882ed45da9464e0e244cd8a3bf0168b5b618fd9'/>
<id>urn:sha1:d882ed45da9464e0e244cd8a3bf0168b5b618fd9</id>
<content type='text'>
The hardcoded full paths were introduced to handle the
case of an empty PATH environment variable. However,
since commit 10212d791a3196c2c870 we set PATH to a default
value if empty. The hardcoded paths are no longer neccessary,
and cause problems on some distros:

User voobscout on
https://github.com/rfjakob/gocryptfs/issues/225#issuecomment-438682034 :

  just to chime in - please don't hardcode paths, for example I'm on
  NixOS and logger lives in /run/current-system/sw/bin/logger

Drop the hardcoded paths.
</content>
</entry>
<entry>
<title>darwin does not have PATH_MAX</title>
<updated>2018-06-07T22:47:48+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2018-06-07T22:47:48+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=bde7ba57b06eb46f8901454e12524a74a8c3b6e8'/>
<id>urn:sha1:bde7ba57b06eb46f8901454e12524a74a8c3b6e8</id>
<content type='text'>
Define our own, with the value from Linux.
</content>
</entry>
<entry>
<title>main: forkChild: try to read /proc/self/exe</title>
<updated>2018-06-07T21:09:27+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2018-06-07T21:06:03+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=fb772da6975eec186161fb00ededc2aef43f9eb9'/>
<id>urn:sha1:fb772da6975eec186161fb00ededc2aef43f9eb9</id>
<content type='text'>
On Linux, where /proc exists, this makes sure that we are
executing ourselves again, and not some other copy of the
gocryptfs executable.

This usually does not matter, but mount(1) unsets $PATH
and sets argv[0] to just "gocryptfs".
</content>
</entry>
<entry>
<title>main: accept -dev, -nodev, -suid, -nosuid, -exec, -noexec</title>
<updated>2018-06-07T20:50:30+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2018-06-07T20:50:30+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=53d6a9999dd0e4c31636d16179f284fff35a35d9'/>
<id>urn:sha1:53d6a9999dd0e4c31636d16179f284fff35a35d9</id>
<content type='text'>
When mounted via /etc/fstab like this,

  /a /b fuse.gocryptfs default 0 0

we always get extra options passed. As reported by @mahkoh
at https://github.com/rfjakob/gocryptfs/pull/233 :

  mount passes `-o noexec` if `-o user` is set and `-o exec` is not set.
  If both `-o user` and `-o exec` are set, it passes `-o exec`.

Make these options work, and in addtion, also make -suid and -rw
work the same way.

Reported-by: @mahkoh
</content>
</entry>
<entry>
<title>daemonize: try /bin/logger if /usr/bin/logger fails</title>
<updated>2018-04-11T18:31:02+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2018-04-11T18:31:02+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=12832851c68ce6ba2907b5d5fefc2a5e49f7c36a'/>
<id>urn:sha1:12832851c68ce6ba2907b5d5fefc2a5e49f7c36a</id>
<content type='text'>
SUSE has /bin/logger, everybody else has /usr/bin/logger,
so try both.

Fixes https://github.com/rfjakob/gocryptfs/issues/225
</content>
</entry>
<entry>
<title>main: call logger with full path</title>
<updated>2017-10-18T18:25:34+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2017-10-18T18:23:50+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=2783eadc8f69ae5803a75dbfccd7ea1862cdfe51'/>
<id>urn:sha1:2783eadc8f69ae5803a75dbfccd7ea1862cdfe51</id>
<content type='text'>
If $PATH contains the mountpoint, searching through it
will lock us up. Use an absolute path to avoid looking
at $PATH.

Fixes https://github.com/rfjakob/gocryptfs/issues/146
</content>
</entry>
<entry>
<title>main: redirectStdFds: keep logger from holding stdout open</title>
<updated>2017-07-23T22:05:39+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2017-07-23T21:55:59+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=496968e06c09f896ed04ad0939242e1ae75cde53'/>
<id>urn:sha1:496968e06c09f896ed04ad0939242e1ae75cde53</id>
<content type='text'>
We passed our stdout and stderr to the new logger instance,
which makes sense to see any error message, but also means that
the fd is kept open even when we close it.

Fixes the new TestMountBackground test and
https://github.com/rfjakob/gocryptfs/issues/130 .
</content>
</entry>
<entry>
<title>main: move redirectStdFds() to daemonize.go</title>
<updated>2017-07-23T17:21:23+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2017-07-23T17:18:58+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=0b6e3ce635ed7a9ec592f0cb72bc1afe7b9ed23e'/>
<id>urn:sha1:0b6e3ce635ed7a9ec592f0cb72bc1afe7b9ed23e</id>
<content type='text'>
This really is a part of daemonization.

No code changes.
</content>
</entry>
</feed>
