From owner-freebsd-testing@freebsd.org Sun May 20 11:23:34 2018 Return-Path: Delivered-To: freebsd-testing@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 28717EB1F6D for ; Sun, 20 May 2018 11:23:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id B5A117B90F for ; Sun, 20 May 2018 11:23:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 794AEEB1F6C; Sun, 20 May 2018 11:23:33 +0000 (UTC) Delivered-To: testing@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 54652EB1F6B for ; Sun, 20 May 2018 11:23:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E2DE47B90E for ; Sun, 20 May 2018 11:23:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 2E5B4167EA for ; Sun, 20 May 2018 11:23:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w4KBNWjw095972 for ; Sun, 20 May 2018 11:23:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w4KBNWSN095971 for testing@freebsd.org; Sun, 20 May 2018 11:23:32 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: testing@freebsd.org Subject: [Bug 228374] auditpipe(4) does not emit lgeth(2) and chflagsat(2) Date: Sun, 20 May 2018 11:23:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: tests X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: aniketp@iitk.ac.in X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: testing@freebsd.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 May 2018 11:23:34 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D228374 Bug ID: 228374 Summary: auditpipe(4) does not emit lgeth(2) and chflagsat(2) Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: tests Assignee: testing@freebsd.org Reporter: aniketp@iitk.ac.in Overview -------------- While creating a test-suite for audit framework. I noticed that two system calls,=20 * lgetfh(2) : Get file handle of a symbolic link * chflagsat(2): Change file-flags' variant do not get audited even if the system wide audit mask is set according to e= ach system call, i.e "fm" for chflagsat(2) and "fa" for lgetfh(2) Steps to reproduce (For lgetfh(2), can be done similarly for chflagsat(2)) ---------------------------- 1) Set "flag:fa" in "/etc/security/audit_control" 2) Enter "praudit /dev/auditpipe | grep "lgetfh" " in a separate window, th= is will wait for any event to occur. 3) Compile and execute this code snippet: https://pastebin.com/EwstzSUz Expected Result ------------------------ You'll not notice anything in the praudit window, signifying that the lgetf= h(2) audit event was not emitted by the auditpipe(4). Additional Information --------------------------------- 1) To confirm that lgetfh(2) was actually triggered, run before executing t= he code. "sudo dtrace -i syscall:freebsd:lgetfh:entry" This will match an lgetfh(2) probe. 2) The system call "getfh" is audited as "nfs_getfh" which has a different audit class altogether. --=20 You are receiving this mail because: You are the assignee for the bug.=