From owner-freebsd-fs@FreeBSD.ORG Mon Oct 29 13:00:53 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BD7AE7C for ; Mon, 29 Oct 2012 13:00:53 +0000 (UTC) (envelope-from fluca1978@gmail.com) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 52F478FC0A for ; Mon, 29 Oct 2012 13:00:52 +0000 (UTC) Received: by mail-vc0-f182.google.com with SMTP id fw7so6542138vcb.13 for ; Mon, 29 Oct 2012 06:00:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=CpM6+cqq5xffq83pXqsR6kuQ8mPa2klQtyWkzfCtz6E=; b=sbMcpLC947ELvw3+O0oCyS3Eay7HACCCBenST14KUbnYkAqlFN6gGGFtzBnLMDhczE 1jsIn5b+rKFmCKHTyNzSS8zRVXPURuG2laVQVAK5KEG4kjkJ6fKHee+oXFuvR9/ZsJ74 BFNqbKQxuX+jLO/GAtpge2xyxkm7p8I8pmxPy25Tm+3jz4eFZPDiu0t19hH3WKGfrP4H 0HcGrq04aSlYGt7BfOLVvWqWFj9gEMCWgkrgqW1Apkxg5mM592BoGrRvHNI4fvDFVEnO ivfgYK7kmhlfmr6YBnZtng2OLqD0N7gM277mI19jNwkYfKBwk8bc1vGFioQbyelRZR0y /4Uw== MIME-Version: 1.0 Received: by 10.52.90.99 with SMTP id bv3mr38575918vdb.125.1351515652196; Mon, 29 Oct 2012 06:00:52 -0700 (PDT) Sender: fluca1978@gmail.com Received: by 10.220.2.135 with HTTP; Mon, 29 Oct 2012 06:00:52 -0700 (PDT) Date: Mon, 29 Oct 2012 14:00:52 +0100 X-Google-Sender-Auth: GRXMubZ71QMOyn06hs7CtUbZihk Message-ID: Subject: vop setattr and secure levels From: Luca Ferrari To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Oct 2012 13:00:53 -0000 Hi all, I'm trying to undertsand the path to some low level file operations, with particular regard to where and when the secure level is checked. While digging the code I found that there is an operation in the vop operation structure that is named vop_setattr which is often referred to an operation that will be called by a lot of syscalls related to file system operations. I'd like to understand when and how such operation is called, since I cannot find any direct reference in, for instance, the ufs implementation. I suspect it is a general routine called by the kernel itself somewhere I cannot find. I've tried to post the same question on the freebsd forums, but without any reply, so I believe that this mailing list can give me some hints. Thanks, Luca