Comments (4)
Can we not use the addForbiddenPath method to avoid these paths?
from sos.
Yes - that's what I've been doing for e.g. the deprecated sysctls, see commit 8db01b2 on rhel-6 branch. The problem with this approach is it gets hairy when you have a large number of such paths to manage. For now it may be the best way forward but there are a number of deprecated paths to avoid in proc and a much larger set of paths that we shouldn't attempt to copy in sysfs - sys is ten years old now and we really should up our game in terms of the information we collect from there. Right now we have bigger problems (our recursive copy function isn't safe for trees containing looping symlinks for e.g.) but this is something that I think we need to improve.
from sos.
This is now about 90% fixed. We now handle symlinks that point to directories (but we don't copy the target by default - that way lies madness) and block and character device nodes and other special node types are now handled properly. This means it's now safe to do e.g.:
self.add_copy_spec("/sys")
self.add_copy_spec("/dev")
self.add_copy_spec("/proc")
There's still some work required to make this robust; in particular scooping up the whole of /sys
and /proc
will require the global blacklists (Issue #316) to avoid tripping over various pipes and comms channels that hang on read()
IO.
from sos.
The fix for Issue #266 means that we handle unreadable files correctly. I'll do some more testing on this today and close the issue out if there's nothing more to do.
from sos.
Related Issues (20)
- [component] report ignores --tmp-dir from preset
- Adding preset leaves its temp directory
- sos report masking not working if we not used following plugins - host, login, networking. HOT 1
- [slurm] Could not open conf file /etc/slurm/slurm.conf because the slurmd is running in `Configless` mode. HOT 3
- [transport] saltstack causes a final error trying to parse the package list from down nodes
- Sos stores upload passwords in the sos.log and manifest.json files. HOT 10
- sos [report|collect] can leak upload user password to stdout
- [snap] boto version is pinned
- Obtain CNI files for containerd HOT 2
- can't collect KUB stats, plugin can't be used HOT 20
- The sos-4.6.1.tar.gz seems to reference sos-4.6.0 HOT 5
- plugin for Kubeflow HOT 6
- add /run/mount/utab HOT 2
- [ubuntu][microk8s] Extend kubernetes options to microk8s plugin HOT 2
- [plugin] Helm with helm list HOT 6
- implement PROXMOX / PVE plugin HOT 2
- [RFE] Extend `sos clean` to have an option for environment variables HOT 4
- Planning release sos-4.7.0 HOT 12
- Juju collector returning 127, not finding nodes
- foreman tests are failing HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sos.