Comments (1)
Thank you for pointing this out. I decided to roll my own fix because I don't like this part of int fstatat(int dirfd, const char *pathname, struct stat *buf, int flags);
syscall:
If pathname is absolute, then dirfd is ignored.
Allowing fstat
ing anything on filesystem.
I also tried restricting fstatat
with seccomp rule like this:
rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(read), 3,
SCMP_A0(SCMP_CMP_EQ, fd),
SCMP_A1(SCMP_CMP_EQ, (scmp_datum_t)buf),
SCMP_A2(SCMP_CMP_LE, BUF_SIZE));
To allow only empty string (""
) as second fstatat
argument, but as that empty string is passed as pointer I could only compare it to that pointer (which is random). More explanation in article Deep argument inspection for seccomp on lwm.net
from wob.
Related Issues (20)
- Replace -v with WOB_LOG_LEVEL env variable
- new release planned? HOT 1
- Two bars on dual monitor setup HOT 3
- unknown keys border and offset HOT 2
- Feature request: allow margin for top/bottom and left/right HOT 2
- Thank you for implementing config files HOT 1
- thank you, using wob as a screenshot notice
- New release HOT 1
- WOB template HOT 1
- hyprland compatible?
- [feature req] Accept more inputs? HOT 3
- Sandbox make wob to crash instantly on aarch64 HOT 7
- fifo input: doc improvement
- Feature request: use environment variables for colors HOT 2
- Feature request: Rounded corners HOT 1
- Reloading sway config file does not change aspect of bar HOT 3
- Exec doesn't run custom configuration HOT 4
- feature req: color segments
- -c option doesn't work if wob.ini exists HOT 1
- Use pixman for drawing HOT 1
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 wob.