From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751405AbbIKAWL (ORCPT ); Thu, 10 Sep 2015 20:22:11 -0400 Received: from mail-ig0-f172.google.com ([209.85.213.172]:36067 "EHLO mail-ig0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750827AbbIKAWI (ORCPT ); Thu, 10 Sep 2015 20:22:08 -0400 From: Tycho Andersen To: Kees Cook , Alexei Starovoitov Cc: "David S. Miller" , Will Drewry , Oleg Nesterov , Andy Lutomirski , Pavel Emelyanov , "Serge E. Hallyn" , Daniel Borkmann , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-api@vger.kernel.org Subject: v2 of seccomp filter c/r patches Date: Thu, 10 Sep 2015 18:20:57 -0600 Message-Id: <1441930862-14347-1-git-send-email-tycho.andersen@canonical.com> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, Here is v2 of the seccomp filter c/r set. The patch notes have individual changes from the last series, but there are two points not noted: * The series still does not allow us to correctly restore state for programs that will use SECCOMP_FILTER_FLAG_TSYNC in the future. Given that we want to keep seccomp_filter's identity, I think something along the lines of another seccomp command like SECCOMP_INHERIT_PARENT is needed (although I'm not sure if this can even be done yet). In addition, we'll need a kcmp command for figuring out if filters are the same, although this too needs to compare seccomp_filter objects, so it's a little screwy. Any thoughts on how to do this nicely are welcome. * I've dropped the bpf converter bug from the set and will submit it separately. Alexei mentioned that this should go via net-next to minimize cross-tree conflicts. Does that make sense here? Thanks, Tycho