Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scope using LD_PRELOAD fails for redis glibc container #8

Open
seanvaleo opened this issue Oct 9, 2023 · 0 comments
Open

Scope using LD_PRELOAD fails for redis glibc container #8

seanvaleo opened this issue Oct 9, 2023 · 0 comments

Comments

@seanvaleo
Copy link
Contributor

seanvaleo commented Oct 9, 2023

Steps To Reproduce

Scoping following container fails
Dockerfile.redis:

FROM redis:6

COPY --from=cribl/scope:1.3.2 /usr/local/bin/scope /usr/local/bin/scope
RUN /usr/local/bin/scope extract /usr/local/lib/

ENV LD_PRELOAD="/usr/local/lib/libscope.so"

# Expose Redis port
EXPOSE 6379

# Start Redis server
CMD ["redis-server"]
docker build --file Dockerfile.redis --tag myredis:latest .
docker run myredis:latest

There is no libscope.so in the redis process above

Scoping same container using different image works fine:

Dockerfile.alpine:

FROM redis:6-alpine

COPY --from=cribl/scope:1.3.2 /usr/local/bin/scope /usr/local/bin/scope
RUN /usr/local/bin/scope extract /usr/local/lib/

ENV LD_PRELOAD="/usr/local/lib/libscope.so"

# Expose Redis port
EXPOSE 6379

# Start Redis server
CMD ["redis-server"]
docker build --file Dockerfile.alpine --tag myredisalpine:latest .
docker run myredisalpine

Environment

- AppScope: 1.3.1
- OS: Ubuntu
- Architecture: x86_64
- Kernel: 5.19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant