From owner-freebsd-current@FreeBSD.ORG Mon May 2 08:14:40 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E9B4116A4CE; Mon, 2 May 2005 08:14:40 +0000 (GMT) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30E7743D54; Mon, 2 May 2005 08:14:40 +0000 (GMT) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by cs1.cs.huji.ac.il with esmtp id 1DSW4c-00041V-Ll; Mon, 02 May 2005 11:14:38 +0300 X-Mailer: exmh version 2.7.0 06/18/2004 with nmh-1.0.4 To: current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 02 May 2005 11:14:38 +0300 From: Danny Braniss Message-ID: cc: stable@freebsd.org Subject: MNT_USER? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2005 08:14:41 -0000 after doing a mount_nfs as root (from the console or via su), statfs reports that MNT_USER flags is set! this is also true with 5.4. is this a bug or feature? the problem can be seen with: #include #include #include #include int main(int argc, char *argv[]) { struct statfs stbuf; int fd; if (argc != 2) { fprintf(stderr, "Usage: noexec directory\n"); return -1; } if (statfs(argv[1], &stbuf) != 0) { perror("statfs"); return -1; } printf("FLAGS: 0x%08X\n", stbuf.f_flags); if (stbuf.f_flags & MNT_NOEXEC) printf("MNT_NOEXEC\n"); return 0; }