<feed xmlns='http://www.w3.org/2005/Atom'>
<title>seitan/cooker/calls, branch master</title>
<subtitle>Syscall Expressive Interpreter, Transformer and Notifier</subtitle>
<link rel='alternate' type='text/html' href='https://seitan.rocks/seitan/'/>
<entry>
<title>call, emit, match: Add support for vectorised operations, nfnetlink</title>
<updated>2024-08-13T17:00:35+00:00</updated>
<author>
<name>Stefano Brivio</name>
<email>sbrivio@redhat.com</email>
</author>
<published>2024-08-13T16:50:33+00:00</published>
<link rel='alternate' type='text/html' href='https://seitan.rocks/seitan/commit/?id=9bf3b1cc7a94357c250f77f16829c96cbae801fe'/>
<id>9bf3b1cc7a94357c250f77f16829c96cbae801fe</id>
<content type='text'>
We want to add and delete rules with iptables(8), and manipulate set
elements with nft(8).

These are the first users we encounter sending multiple netlink
messages in one sendmsg().

To support matching on those, we need to iterate over several
messages, looking for a matching one, or a mismatching one (depending
on quantifiers and match type), but we don't want to implement program
loops because of security design reasons.

We can't implement a generalised instruction that vectorises existing
ones, either, because we need to support universal and existential
quantifiers in fields that are repeated multiple times, once per each
netlink message, with bitwise operations and non-exact matching types.

Add vectorisation support to OP_CMP and OP_BITWISE instead, with a
generic description for a vector (only sequences of netlink messages
with length in nlmsghdr are supported at the moment) so that,
depending on the quantifiers, we'll repeat those operations as many
times as needed. This way, we don't risk any O(n^2) explosion, and we
are bound by O(m * n) instead, with m compare/bitwise operations for
a given expression, and n number of netlink messages.

Add demos for nft and iptables using the new concepts.

Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We want to add and delete rules with iptables(8), and manipulate set
elements with nft(8).

These are the first users we encounter sending multiple netlink
messages in one sendmsg().

To support matching on those, we need to iterate over several
messages, looking for a matching one, or a mismatching one (depending
on quantifiers and match type), but we don't want to implement program
loops because of security design reasons.

We can't implement a generalised instruction that vectorises existing
ones, either, because we need to support universal and existential
quantifiers in fields that are repeated multiple times, once per each
netlink message, with bitwise operations and non-exact matching types.

Add vectorisation support to OP_CMP and OP_BITWISE instead, with a
generic description for a vector (only sequences of netlink messages
with length in nlmsghdr are supported at the moment) so that,
depending on the quantifiers, we'll repeat those operations as many
times as needed. This way, we don't risk any O(n^2) explosion, and we
are bound by O(m * n) instead, with m compare/bitwise operations for
a given expression, and n number of netlink messages.

Add demos for nft and iptables using the new concepts.

Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add fsetxattr(), fremovexattr(), open_by_handle_at(), and "virtiofsd demo"</title>
<updated>2024-05-15T06:49:56+00:00</updated>
<author>
<name>Stefano Brivio</name>
<email>sbrivio@redhat.com</email>
</author>
<published>2024-05-15T06:49:56+00:00</published>
<link rel='alternate' type='text/html' href='https://seitan.rocks/seitan/commit/?id=5a9302bab9c9bb3d1577f04678d074fb7af4115f'/>
<id>5a9302bab9c9bb3d1577f04678d074fb7af4115f</id>
<content type='text'>
Mostly assorted fixes, a new FDGET operation (get a copy of the
target file descriptor via pidfd_getfd()) and a new "FD" flag that
means we have to do that on direct tag reference.

Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Mostly assorted fixes, a new FDGET operation (get a copy of the
target file descriptor via pidfd_getfd()) and a new "FD" flag that
means we have to do that on direct tag reference.

Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>seitan: Add netlink, sendto()/sendmsg(), iovec handling, demo with routes</title>
<updated>2023-12-21T11:45:36+00:00</updated>
<author>
<name>Stefano Brivio</name>
<email>sbrivio@redhat.com</email>
</author>
<published>2023-12-21T11:06:05+00:00</published>
<link rel='alternate' type='text/html' href='https://seitan.rocks/seitan/commit/?id=bdbec30a849807fb5e6841a38cfe0d168e5962b9'/>
<id>bdbec30a849807fb5e6841a38cfe0d168e5962b9</id>
<content type='text'>
A bit rough at the moment, but it does the trick. Bonus: setsockopt()
(with magic values only, not used in any demo yet).

Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A bit rough at the moment, but it does the trick. Bonus: setsockopt()
(with magic values only, not used in any demo yet).

Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cooker/calls: Add support for bind()</title>
<updated>2023-09-04T15:16:05+00:00</updated>
<author>
<name>Stefano Brivio</name>
<email>sbrivio@redhat.com</email>
</author>
<published>2023-07-07T15:33:04+00:00</published>
<link rel='alternate' type='text/html' href='https://seitan.rocks/seitan/commit/?id=bcbe728187c7239d43d0fe32eaa0f07d09f7e765'/>
<id>bcbe728187c7239d43d0fe32eaa0f07d09f7e765</id>
<content type='text'>
...no examples yet, but it's trivial as the prototype is exactly the
same as connect().

Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
...no examples yet, but it's trivial as the prototype is exactly the
same as connect().

Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cooker: fix priority name for sched_setscheduler</title>
<updated>2023-09-01T12:32:16+00:00</updated>
<author>
<name>Alice Frosi</name>
<email>afrosi@redhat.com</email>
</author>
<published>2023-09-01T12:32:16+00:00</published>
<link rel='alternate' type='text/html' href='https://seitan.rocks/seitan/commit/?id=472d0e7212faed61bc6663f428f0d3c1c8ce507e'/>
<id>472d0e7212faed61bc6663f428f0d3c1c8ce507e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>cooker, seitan: add sched_setscheduler</title>
<updated>2023-09-01T08:37:04+00:00</updated>
<author>
<name>Alice Frosi</name>
<email>afrosi@redhat.com</email>
</author>
<published>2023-09-01T08:16:36+00:00</published>
<link rel='alternate' type='text/html' href='https://seitan.rocks/seitan/commit/?id=59f7f7c241253293c25e001c9340f1deeb138311'/>
<id>59f7f7c241253293c25e001c9340f1deeb138311</id>
<content type='text'>
The sched_setscheduler requires to set the pid of the process we want to
change the priority, this adds a new metadata for getting the target pid
at runtime.

Add a couple of syscalls for the scheduler in the string parsing.

Signed-off-by: Alice Frosi &lt;afrosi@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The sched_setscheduler requires to set the pid of the process we want to
change the priority, this adds a new metadata for getting the target pid
at runtime.

Add a couple of syscalls for the scheduler in the string parsing.

Signed-off-by: Alice Frosi &lt;afrosi@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cooker: add chown and lchown</title>
<updated>2023-08-25T07:59:08+00:00</updated>
<author>
<name>Alice Frosi</name>
<email>afrosi@redhat.com</email>
</author>
<published>2023-08-25T07:59:08+00:00</published>
<link rel='alternate' type='text/html' href='https://seitan.rocks/seitan/commit/?id=df9e3287663155d89fe990712e90080f4a621a79'/>
<id>df9e3287663155d89fe990712e90080f4a621a79</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>cooker/calls: Actually add io.{c,h}</title>
<updated>2023-06-14T10:05:54+00:00</updated>
<author>
<name>Stefano Brivio</name>
<email>sbrivio@redhat.com</email>
</author>
<published>2023-06-14T10:05:54+00:00</published>
<link rel='alternate' type='text/html' href='https://seitan.rocks/seitan/commit/?id=a071e4631d18dad45bd247ee2728be50ca33ed39'/>
<id>a071e4631d18dad45bd247ee2728be50ca33ed39</id>
<content type='text'>
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cooker: Full support for flags and masks, assorted fixes</title>
<updated>2023-06-08T18:05:18+00:00</updated>
<author>
<name>Stefano Brivio</name>
<email>sbrivio@redhat.com</email>
</author>
<published>2023-06-08T18:05:18+00:00</published>
<link rel='alternate' type='text/html' href='https://seitan.rocks/seitan/commit/?id=15b54482241083d52b6e9857a66fecbf915d467d'/>
<id>15b54482241083d52b6e9857a66fecbf915d467d</id>
<content type='text'>
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mknod/mknodat values, initial support for MASK flag, OP_BITWISE</title>
<updated>2023-06-07T21:06:32+00:00</updated>
<author>
<name>Stefano Brivio</name>
<email>sbrivio@redhat.com</email>
</author>
<published>2023-06-07T21:02:23+00:00</published>
<link rel='alternate' type='text/html' href='https://seitan.rocks/seitan/commit/?id=c38fccbc867019d6c063be1c1d8137edfe52f8de'/>
<id>c38fccbc867019d6c063be1c1d8137edfe52f8de</id>
<content type='text'>
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
