Coder Social home page Coder Social logo

Comments (4)

virusdefender avatar virusdefender commented on September 28, 2024

话说你是直接在 18.04 系统上使用的 Judger 还是用的我的 docker 镜像但是外边操作系统是 18.04?

看你 strace 结果,感觉是系统启动可执行文件的时候的行为有改变,这个结果一般和编译器和 libc 版本有关系。

openat 感觉可以像 open 可以加入白名单,只要 flag 没有 read 就行。

from judger.

virusdefender avatar virusdefender commented on September 28, 2024

看了下,general 的 rule 中处理了 openat,但是是黑名单

if (seccomp_rule_add(ctx, SCMP_ACT_KILL, SCMP_SYS(openat), 1, SCMP_CMP(2, SCMP_CMP_MASKED_EQ, O_WRONLY, O_WRONLY)) != 0) {

from judger.

WangRest avatar WangRest commented on September 28, 2024

我们是在自己的服务器上跑这个沙盒,今天在自己ubuntu18.04上开发时发现这个问题。
之前我也使用过这个库,是在centos环境下,那时候没问题。同时在ubuntu16.04下也没有问题,只有在ubuntu18.04中会出现这个问题,主要是因为在18.04中gcc编译会默认以动态链接库的形式生成可执行程序,所以程序在执行过程中会调用openat查看相关动态库链接。而在centos和ubuntu16.04中则不会出现openat系统调用。所以在18.04下,gcc编译选项添加 -static选项,就不会出现这个系统调用了。

from judger.

virusdefender avatar virusdefender commented on September 28, 2024

感谢

已经允许 openat

b6414e7#diff-580a4009fdbe55d9aeb1029d53082709R40

from judger.

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.