utsname.c (5b825c3af1d8a0af4deb4a5eb349d0d0050c62e5) | utsname.c (f719ff9bcee2a422647790f12d53d3755f47c727) |
---|---|
1/* 2 * Copyright (C) 2004 IBM Corporation 3 * 4 * Author: Serge Hallyn <serue@us.ibm.com> 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License as 8 * published by the Free Software Foundation, version 2 of the 9 * License. 10 */ 11 12#include <linux/export.h> 13#include <linux/uts.h> 14#include <linux/utsname.h> 15#include <linux/err.h> 16#include <linux/slab.h> 17#include <linux/cred.h> 18#include <linux/user_namespace.h> 19#include <linux/proc_ns.h> | 1/* 2 * Copyright (C) 2004 IBM Corporation 3 * 4 * Author: Serge Hallyn <serue@us.ibm.com> 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License as 8 * published by the Free Software Foundation, version 2 of the 9 * License. 10 */ 11 12#include <linux/export.h> 13#include <linux/uts.h> 14#include <linux/utsname.h> 15#include <linux/err.h> 16#include <linux/slab.h> 17#include <linux/cred.h> 18#include <linux/user_namespace.h> 19#include <linux/proc_ns.h> |
20#include <linux/sched/task.h> |
|
20 21static struct ucounts *inc_uts_namespaces(struct user_namespace *ns) 22{ 23 return inc_ucount(ns, current_euid(), UCOUNT_UTS_NAMESPACES); 24} 25 26static void dec_uts_namespaces(struct ucounts *ucounts) 27{ --- 143 unchanged lines hidden --- | 21 22static struct ucounts *inc_uts_namespaces(struct user_namespace *ns) 23{ 24 return inc_ucount(ns, current_euid(), UCOUNT_UTS_NAMESPACES); 25} 26 27static void dec_uts_namespaces(struct ucounts *ucounts) 28{ --- 143 unchanged lines hidden --- |