Comments (6)
Hmm trying to build manually by hand leads to:
# make CC=tcc
tcc -Wall -O2 -DUSE_PAM -DDOAS_CONF=\"/usr/local/etc/doas.conf\" -D_GNU_SOURCE -include compat/compat.h -Icompat -c -o doas.o doas.c
In file included from doas.c:48:
doas.c:48: error: include file 'security/pam_appl.h' not found
make: *** [<builtin>: doas.o] Error 1
#
This system doesn't have any "PAM" -- It's mostly just a busybox userland more or less with a musl libc and tcc C compiler
from doas.
Hmmm building with -DUSE_BSD_AUTH
isn't going to work either :/
# make CC=tcc
tcc -Wall -O2 -DUSE_BSD_AUTH -DDOAS_CONF=\"/usr/local/etc/doas.conf\" -D_GNU_SOURCE -include compat/compat.h -Icompat -c -o doas.o doas.c
In file included from doas.c:43:
doas.c:43: error: include file 'bsd_auth.h' not found
make: *** [<builtin>: doas.o] Error 1
#
What options do we have here on a very non-traditional system?
from doas.
To answer your first question, DOAS_CONF is set in the Makefile. It looks like the build process is trying to do things manually rather than run the Makefile or isn't compatible with GNU Make.
As for building doas without doas or BSD Auth, it's not going to work. If the system is so minimal that it doesn't have PAM then it's not going to build/run.
from doas.
As for building doas without doas or BSD Auth, it's not going to work. If the system is so minimal that it doesn't have PAM then it's not going to build/run.
I take it this pretty much applies to sudo as well? Basically no doas/sudo on busybox-based systems?
from doas.
I can't speak for the sudo devs, but I know the sudo package on Debian pulls in PAM as a dependency. FreeBSD's sudo port does too, at least with the default build.
from doas.
Yeah no worries. I think it would be difficult to get PAM into this very small system. I'll close this issue, but thanks for responding! ๐โโ๏ธ
from doas.
Related Issues (20)
- how do you enable --with-timestamp HOT 1
- doas: Operation not permitted HOT 1
- Sudo askpass analog HOT 1
- Add -e known from sudo HOT 3
- persist is not effective if doas comes after /usr/bin/time. HOT 1
- [Git master] Vulnerable to privilege escalation using ioctls `TIOCSTI` and `TIOCLINUX` HOT 4
- doas: authentication failed on OPNsense HOT 10
- doas(1) Arguments like in sudo(8) HOT 5
- doas should check transitive writability of parent directories of config file HOT 3
- Allow multiple password attempts. HOT 1
- using 'nopass' still asking for password HOT 10
- How can I make doas show symbols or asteriks when I type my password, since I want some feedback when typing my password? HOT 1
- `persist` option does not work HOT 1
- become POSIX compliant HOT 3
- `doas` hangs when doas command pipes into another doas command HOT 1
- Request for Pacstall Support HOT 1
- It doesn't seems to work in Solus HOT 1
- ยดdoas -u userยด results in "doas: Operation not permitted" HOT 5
- doas: syntax error at line 1 HOT 1
- How to uninstall/purge doas? HOT 4
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 doas.