* [Virtio-fs] [PATCH v2] virtiofsd: remove SCMP_FLTATTR_CTL_TSYNC flag
@ 2019-07-15 3:09 Eric Ren
2019-07-16 15:30 ` Stefan Hajnoczi
0 siblings, 1 reply; 3+ messages in thread
From: Eric Ren @ 2019-07-15 3:09 UTC (permalink / raw)
To: virtio-fs
SCMP_FLTATTR_CTL_TSYNC flag is only available on
Linux Kernel 3.17 or greater. Older host kernel
fails virtiofsd, limiting virtiofsd use.
And, confirmed from Stefan Hajnoczi:
"""
There are no threads when setup_seccomp() is invoked so the TSYNC
attribute is not required.
Please remove the TSYNC call. Then we don't need to worry about version
or feature checks.
"""
Signed-off-by: Eric Ren <renzhen@linux.alibaba.com>
---
contrib/virtiofsd/seccomp.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/contrib/virtiofsd/seccomp.c b/contrib/virtiofsd/seccomp.c
index 4e388adc9c..28b2bbf0cf 100644
--- a/contrib/virtiofsd/seccomp.c
+++ b/contrib/virtiofsd/seccomp.c
@@ -92,10 +92,6 @@ void setup_seccomp(void)
err(1, "seccomp_init()");
}
- if (seccomp_attr_set(ctx, SCMP_FLTATR_CTL_TSYNC, 1) != 0) {
- err(1, "seccomp_attr_set(ctx, SCMP_FLTATTR_CTL_TSYNC, 1)");
- }
-
for (i = 0; i < G_N_ELEMENTS(syscall_whitelist); i++) {
if (seccomp_rule_add(ctx, SCMP_ACT_ALLOW,
syscall_whitelist[i], 0) != 0) {
--
2.17.2 (Apple Git-113)
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Virtio-fs] [PATCH v2] virtiofsd: remove SCMP_FLTATTR_CTL_TSYNC flag
2019-07-15 3:09 [Virtio-fs] [PATCH v2] virtiofsd: remove SCMP_FLTATTR_CTL_TSYNC flag Eric Ren
@ 2019-07-16 15:30 ` Stefan Hajnoczi
2019-07-18 9:52 ` Dr. David Alan Gilbert
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Hajnoczi @ 2019-07-16 15:30 UTC (permalink / raw)
To: Eric Ren; +Cc: virtio-fs
[-- Attachment #1: Type: text/plain, Size: 661 bytes --]
On Mon, Jul 15, 2019 at 11:09:51AM +0800, Eric Ren wrote:
> SCMP_FLTATTR_CTL_TSYNC flag is only available on
> Linux Kernel 3.17 or greater. Older host kernel
> fails virtiofsd, limiting virtiofsd use.
>
> And, confirmed from Stefan Hajnoczi:
> """
> There are no threads when setup_seccomp() is invoked so the TSYNC
> attribute is not required.
>
> Please remove the TSYNC call. Then we don't need to worry about version
> or feature checks.
> """
>
> Signed-off-by: Eric Ren <renzhen@linux.alibaba.com>
> ---
> contrib/virtiofsd/seccomp.c | 4 ----
> 1 file changed, 4 deletions(-)
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Virtio-fs] [PATCH v2] virtiofsd: remove SCMP_FLTATTR_CTL_TSYNC flag
2019-07-16 15:30 ` Stefan Hajnoczi
@ 2019-07-18 9:52 ` Dr. David Alan Gilbert
0 siblings, 0 replies; 3+ messages in thread
From: Dr. David Alan Gilbert @ 2019-07-18 9:52 UTC (permalink / raw)
To: Stefan Hajnoczi; +Cc: virtio-fs
* Stefan Hajnoczi (stefanha@redhat.com) wrote:
> On Mon, Jul 15, 2019 at 11:09:51AM +0800, Eric Ren wrote:
> > SCMP_FLTATTR_CTL_TSYNC flag is only available on
> > Linux Kernel 3.17 or greater. Older host kernel
> > fails virtiofsd, limiting virtiofsd use.
> >
> > And, confirmed from Stefan Hajnoczi:
> > """
> > There are no threads when setup_seccomp() is invoked so the TSYNC
> > attribute is not required.
> >
> > Please remove the TSYNC call. Then we don't need to worry about version
> > or feature checks.
> > """
> >
> > Signed-off-by: Eric Ren <renzhen@linux.alibaba.com>
> > ---
> > contrib/virtiofsd/seccomp.c | 4 ----
> > 1 file changed, 4 deletions(-)
>
> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Thanks, merged.
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-07-18 9:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-15 3:09 [Virtio-fs] [PATCH v2] virtiofsd: remove SCMP_FLTATTR_CTL_TSYNC flag Eric Ren
2019-07-16 15:30 ` Stefan Hajnoczi
2019-07-18 9:52 ` Dr. David Alan Gilbert
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.