<feed xmlns='http://www.w3.org/2005/Atom'>
<title>hakurei/helper/seccomp/export.go, branch develop</title>
<subtitle>low-level userspace tooling for Rosa OS</subtitle>
<id>http://src.rosa.moe/hakurei/atom/helper/seccomp/export.go?h=develop</id>
<link rel='self' href='http://src.rosa.moe/hakurei/atom/helper/seccomp/export.go?h=develop'/>
<link rel='alternate' type='text/html' href='http://src.rosa.moe/hakurei/'/>
<updated>2025-03-14T13:42:40Z</updated>
<entry>
<title>seccomp: move out of helper</title>
<updated>2025-03-14T13:42:40Z</updated>
<author>
<name>Ophestra</name>
<email>cat@gensokyo.uk</email>
</author>
<published>2025-03-14T13:42:40Z</published>
<link rel='alternate' type='text/html' href='http://src.rosa.moe/hakurei/commit/?id=2647a71be1f287e50011a65653b9e9c806627899'/>
<id>urn:sha1:2647a71be1f287e50011a65653b9e9c806627899</id>
<content type='text'>
Signed-off-by: Ophestra &lt;cat@gensokyo.uk&gt;
</content>
</entry>
<entry>
<title>helper/seccomp: seccomp_load on negative fd</title>
<updated>2025-03-12T06:18:52Z</updated>
<author>
<name>Ophestra</name>
<email>cat@gensokyo.uk</email>
</author>
<published>2025-03-12T06:18:52Z</published>
<link rel='alternate' type='text/html' href='http://src.rosa.moe/hakurei/commit/?id=be16970e770554b3c2191da41eb9bd4472b323e4'/>
<id>urn:sha1:be16970e770554b3c2191da41eb9bd4472b323e4</id>
<content type='text'>
Signed-off-by: Ophestra &lt;cat@gensokyo.uk&gt;
</content>
</entry>
<entry>
<title>fortify: keep external files alive</title>
<updated>2025-02-22T18:24:37Z</updated>
<author>
<name>Ophestra</name>
<email>cat@gensokyo.uk</email>
</author>
<published>2025-02-22T18:24:37Z</published>
<link rel='alternate' type='text/html' href='http://src.rosa.moe/hakurei/commit/?id=eda4d612c2e64321766e1074a698caeae843102a'/>
<id>urn:sha1:eda4d612c2e64321766e1074a698caeae843102a</id>
<content type='text'>
This should eliminate sporadic failures, like the known double close in "seccomp".

Signed-off-by: Ophestra &lt;cat@gensokyo.uk&gt;
</content>
</entry>
<entry>
<title>helper/seccomp: use sync.Once for closeWrite</title>
<updated>2025-02-13T13:49:16Z</updated>
<author>
<name>Ophestra</name>
<email>cat@gensokyo.uk</email>
</author>
<published>2025-02-13T13:49:16Z</published>
<link rel='alternate' type='text/html' href='http://src.rosa.moe/hakurei/commit/?id=d1d20c06fb0c3ed5aaff15f284921a5e61c291e1'/>
<id>urn:sha1:d1d20c06fb0c3ed5aaff15f284921a5e61c291e1</id>
<content type='text'>
This makes the code much cleaner, and eliminates the intermittent ErrInvalid errors.

Signed-off-by: Ophestra &lt;cat@gensokyo.uk&gt;
</content>
</entry>
<entry>
<title>helper/seccomp: eliminate data race on pfd</title>
<updated>2025-02-13T01:40:51Z</updated>
<author>
<name>Ophestra</name>
<email>cat@gensokyo.uk</email>
</author>
<published>2025-02-13T01:40:51Z</published>
<link rel='alternate' type='text/html' href='http://src.rosa.moe/hakurei/commit/?id=099da78af5b78ac69a9c3550229a29d8dac0e9f8'/>
<id>urn:sha1:099da78af5b78ac69a9c3550229a29d8dac0e9f8</id>
<content type='text'>
Turns out the doc comment on os.File was lying about its methods being safe for concurrent use. The race detector picked up a data race from concurrent use of Fd and Close.

This change eliminates that by calling Fd in the prepare routine.

Signed-off-by: Ophestra &lt;cat@gensokyo.uk&gt;
</content>
</entry>
<entry>
<title>helper/seccomp: panic on invalid closeWrite use</title>
<updated>2025-02-07T03:58:20Z</updated>
<author>
<name>Ophestra</name>
<email>cat@gensokyo.uk</email>
</author>
<published>2025-02-07T03:58:20Z</published>
<link rel='alternate' type='text/html' href='http://src.rosa.moe/hakurei/commit/?id=568d7758d5308457967672997d9d2e786c7403f1'/>
<id>urn:sha1:568d7758d5308457967672997d9d2e786c7403f1</id>
<content type='text'>
Returning an error here puts exporter in an invalid state. The caller should guard against this condition instead.

Signed-off-by: Ophestra &lt;cat@gensokyo.uk&gt;
</content>
</entry>
<entry>
<title>helper/seccomp: implement reader interface via pipe</title>
<updated>2025-02-03T10:43:03Z</updated>
<author>
<name>Ophestra</name>
<email>cat@gensokyo.uk</email>
</author>
<published>2025-02-03T09:10:29Z</published>
<link rel='alternate' type='text/html' href='http://src.rosa.moe/hakurei/commit/?id=5b7b3fa9a4d8ca4ad08d6648752e28ee66f0ffae'/>
<id>urn:sha1:5b7b3fa9a4d8ca4ad08d6648752e28ee66f0ffae</id>
<content type='text'>
This also does not require the libc tmpfile call.

BPF programs emitted by libseccomp seems to be deterministic. The tests would catch regressions as it verifies the program against known good output backed by manual testing.

Signed-off-by: Ophestra &lt;cat@gensokyo.uk&gt;
</content>
</entry>
<entry>
<title>helper/seccomp: separate seccomp package</title>
<updated>2025-01-25T03:59:11Z</updated>
<author>
<name>Ophestra</name>
<email>cat@gensokyo.uk</email>
</author>
<published>2025-01-25T03:59:11Z</published>
<link rel='alternate' type='text/html' href='http://src.rosa.moe/hakurei/commit/?id=163f15e93f009d15ecc2f93932e26728aff9904b'/>
<id>urn:sha1:163f15e93f009d15ecc2f93932e26728aff9904b</id>
<content type='text'>
Signed-off-by: Ophestra &lt;cat@gensokyo.uk&gt;
</content>
</entry>
</feed>
