Giter Site home page Giter Site logo

Comments (6)

prologic avatar prologic commented on July 17, 2024

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.

prologic avatar prologic commented on July 17, 2024

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.

slicer69 avatar slicer69 commented on July 17, 2024

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.

prologic avatar prologic commented on July 17, 2024

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.

slicer69 avatar slicer69 commented on July 17, 2024

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.

prologic avatar prologic commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.