GithubHelp home page GithubHelp logo

portage-2realities's People

Contributors

artem-sidorenko avatar

Watchers

 avatar  avatar

Forkers

greatemerald

portage-2realities's Issues

hardened-sources 3.17.7 fails to compile: path

This actually happened when I tried manually applying the Ubuntu patches before you mentioned you're maintaining this repository, so it's not unique to 3.17.7. Trying to compile the kernel with AppArmor enabled results in a failure:

  CC      security/apparmor/mount.o
security/apparmor/mount.c: In function 'aa_umount':
security/apparmor/mount.c:546:9: error: invalid initializer
  struct path path = { mnt, mnt->mnt_root };
         ^
security/apparmor/mount.c:546:9: error: (near initialization for 'path.<anonymous>')
scripts/Makefile.build:257: recipe for target 'security/apparmor/mount.o' failed

This can be fixed by assigning the elements of "path" one by one and using a less ambiguous name, like this:

        struct path pth;
        pth.mnt = mnt;
        pth.dentry = mnt->mnt_root;

And replacing other "path" in the umount function with "pth" or whatever else the renamed variable is.

I'm using GCC x86_64-pc-linux-gnu-4.8.3 Hardened profile.

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.