CiscoCloud / distributive

Unit testing for the cloud
Apache License 2.0
147 stars 20 forks source link

Check for ulimit for root user #115

Closed sehqlr closed 8 years ago

sehqlr commented 8 years ago

I was working on ciscocloud/microservices-infrastructure#775, and @stevendborrelli mentioned that we should add a check for this setting.

langston-barrett commented 8 years ago

I don't know how feasible it is to check the number of open files for another user. It looks like lsof won't allow it if security mode is enabled [1]. I don't know of any other ways to list the number of open files.

[1]: From here: "If the symbol HASSECURITY is defined, a security mode is enabled, and lsof will allow only the root user to list all open files. Non-root users may list only open files whose processes have the same user ID as the real user ID of the lsof process (the one that its user logged on with)."

sehqlr commented 8 years ago

I forgot that this was still active. Closing