Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755001AbbBBTAW (ORCPT ); Mon, 2 Feb 2015 14:00:22 -0500 Received: from smtp105.biz.mail.bf1.yahoo.com ([98.139.221.43]:43777 "EHLO smtp105.biz.mail.bf1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754474AbbBBTAU (ORCPT ); Mon, 2 Feb 2015 14:00:20 -0500 X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: zUECYuAVM1llbq0OzmwkFkwpzO4N8qfncAkMv2QNimljNe. P5LXY2ZkebxCrRsusW6BSkxDtRSy_BqD1MqNHkSud.YdLmntzzheTvHg_kca 8jy7xf90BMgkJMgUz27NCkqbHCmPHIgsuwRzbuUXwkI1bt.r203Qz1bje76k G0vXzWlrfhg6dpz59im3cUV3L9.6hU2TDKsDzxMH.XBw4SwnPOOWhK7JYlmH p_LHgwwcdkJmLKe3lsNySZuNEhCGf6QqXwC0cSh5Boal0rJSLW4zn4QmtEdb w2JcrzXBn1GHjgRgTPpuREbqJZn6QHUawZfBI89zmXC8gPMvT11NP4Bhus6r 9yPDtSVzOC2YE7kl.ym92obvqUFrqs8y_7.sY.8.m6X3RDMdCRpfJlzwIyPa Q_1BdDBUumphSjkX64zsqpGI.vyJ..s7pC7SQpBFZMn9mqTPefztOxRkEZOH 96OR5y7qpHdKF_cGI_tLpGbZv8oocTung7bKD8n7LPiAecFlAFLrdyNMhxcJ Az3AqES8FzIkDiBrg X-Yahoo-SMTP: OIJXglSswBDfgLtXluJ6wiAYv6_cnw-- Message-ID: <54CFC942.9010502@schaufler-ca.com> Date: Mon, 02 Feb 2015 11:00:18 -0800 From: Casey Schaufler User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Serge Hallyn CC: Christoph Lameter , Serge Hallyn , Andy Lutomirski , Jonathan Corbet , Aaron Jones , "Ted Ts'o" , linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, akpm@linuxfoundation.org, Casey Schaufler Subject: Re: [capabilities] Allow normal inheritance for a configurable set of capabilities References: <54CFB9B8.8020701@schaufler-ca.com> <20150202180806.GE24351@ubuntumail> In-Reply-To: <20150202180806.GE24351@ubuntumail> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1690 Lines: 30 On 2/2/2015 10:08 AM, Serge Hallyn wrote: > Quoting Casey Schaufler (casey@schaufler-ca.com): >> I'm game to participate in such an effort. The POSIX scheme >> is workable, but given that it's 20 years old and hasn't >> developed real traction it's hard to call it successful. > Over the years we've several times discussed possible reasons for this > and how to help. I personally think it's two things: 1. lack of > toolchain and fs support. The fact that we cannot to this day enable > ping using capabilities by default because of cpio, tar and non-xattr > filesystems is disheartening. 2. It's hard for users and applications > to know what caps they need. yes the API is a bear to use, but we can > hide that behind fancier libraries. But using capabilities requires too > much in-depth knowledge of precisely what caps you might need for > whatever operations library may now do when you asked for something. The fix for that is to a change to the audit system. If the audit system reported the capabilities relevant to the decision you'd have what you need. If you failed because you didn't have CAP_CHMOD or you succeeded because you had CAP_SYS_ADMIN it should show up in the audit record. Other systems have used this approach. You could, of course, create a separate capability result log, and I believe that Nokia had done something along those lines. I think that adding it to the audit trail is a more rational approach. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/