diff options
author | Tyler Hicks <tyhicks@canonical.com> | 2018-07-20 23:56:53 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-21 08:44:36 +0200 |
commit | fbdeaed408cf2728c62640c10848ddb1b67e63d3 (patch) | |
tree | 4c06f4a43d4516e7f1f83db877f4f4c49b01077f /include/dt-bindings/phy | |
parent | net-sysfs: make sure objects belong to container's owner (diff) | |
download | linux-fbdeaed408cf2728c62640c10848ddb1b67e63d3.tar.xz linux-fbdeaed408cf2728c62640c10848ddb1b67e63d3.zip |
net: create reusable function for getting ownership info of sysfs inodes
Make net_ns_get_ownership() reusable by networking code outside of core.
This is useful, for example, to allow bridge related sysfs files to be
owned by container root.
Add a function comment since this is a potentially dangerous function to
use given the way that kobject_get_ownership() works by initializing uid
and gid before calling .get_ownership().
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/dt-bindings/phy')
0 files changed, 0 insertions, 0 deletions