Re: [PATCH v2] sched: debug: use task_pid_nr_ns in /proc/$pid/sched

From: Eric W. Biederman
Date: Tue Aug 08 2017 - 11:26:10 EST


Jessie Frazelle <jessfraz@xxxxxxxxxx> writes:

> Thanks for patching this :) Guess I will find a different rabbit in a
> hat to detect if running in a pid namespace ;)

I want to say that stating the /proc/pid/ns/pid files ought to be an
easy way. But thinking about it they permissions on those might be a
bit tricky.

Eric