GithubHelp home page GithubHelp logo

mozilla-b2g / gonk-misc Goto Github PK

View Code? Open in Web Editor NEW
33.0 88.0 107.0 88.88 MB

DEPRECATED - Random parts that make gonk work

License: Other

C 5.65% Python 5.86% Makefile 28.04% C++ 53.96% Shell 6.41% ApacheConf 0.08%
abandoned unmaintained

gonk-misc's People

Contributors

allstarschh avatar askeing avatar atilag avatar bavariantomcat avatar dhylands avatar dimidl avatar dwilsoncaf avatar eeejay avatar fabricedesre avatar gabrielesvelto avatar glandium avatar jhector avatar jhford avatar jld avatar jlebar avatar joneschrisg avatar lissyx avatar lloyd avatar luser avatar marshall avatar michaelwu avatar qdot avatar rvandermeulen avatar seinlin avatar shianyow avatar stellirin avatar tdz avatar timdream avatar vicamo avatar wilsonpage avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gonk-misc's Issues

Initial path of GECKO_OBJDIR is not the same with the one in .config

GECKO_OBJDIR will be B2G/objdir-gecko if calling build.sh which refer to .config.
GECKO_OBJDIR will be $(TARGET_OUT_INTERMEDIATES)/objdir-gecko if calling ./build/envsetup.sh & choosecombo & mm gonk-misc.

The second one is used to build gecko only via default Android build environment.
But it made the GECKO_OBJDIR no the same with ./build.sh so we need to build entire gecko again.

Suggestion to modify GECKO_OBJDIR the same with .config.

rildproxy socket permissions

/dev/socket/rildproxy (and /dev/socket/rildproxyd perhaps) have currently permissions set to 777
it seems that it could be set to 770 after discussing with qDot on IRC, which would restrict it's usage to the radio group and obviously, root

also, the rildproxy can probably be started as user radio instead of start as root and switching to radio (however, that is only a suggestion)

Default mount hardening

Default mounts should be tighter, especially that we do not need permissions as wide (or as many mounts) as Android requires. (note: those mounts options are not currently required for the recovery mode, defaults are fine)

This reduces the attack surface at the file system level.

The proposed minimum mounts and their options are documented at https://wiki.mozilla.org/B2G/Architecture/Runtime_Security#OS_Hardening

Additional options may be present such as "relatime, barrier=1, data=ordered", etc. but there should be no fewer options.
Additional mounts that are not in use should be removed, such as:

/mnt/sdcard/.android_secure
/sys/kernel/debug
/mnt/secure/asec
/mnt/asec
/mnt/obb

Most mounts are performed in /init*rc. /system has to be mounted rw, then remounted ro (already performed by Android scripts). It is acceptable to have all the mounts "fixed up" in /init.rc or /init.b2g.rc as well.

Consider removing the fallback -j16 option for GECKO_MAKE_FLAGS in Android.mk

Building B2G on my machine consistently hung my medium-powered laptop, and eventually I traced it to this setting.

It's possible that this only came to light because GECKO_MAKE_FLAGS is normally set and that there's a configuration problem elsewhere in my B2G tree. Still, this is a very strange default and when it leads to a problem as it did for me, it is rather hard to diagnose.

In my (relatively uninformed) opinion, this line of code is best removed.

Optionally run a vendor-specific b2g.sh "init" file

Here's my use case: I need to some framebuffer device hackery, because life sucks sometimes. The only sane place I could think to include that was b2g.sh. However, no way that's something we want to take upstream, it's very specific to Raspberry Pi.

I landed a hack to just import b2g.sh into my device/.../ dir, but that sucks. But deadline approacheth.

My thought was to add a vendor hook to b2g.sh to support that use case. Something along the lines of

test -x /system/bin/b2g_vendor_init.sh && /system/bin/b2g_vendor_init.sh

near the beginning of /system/bin/b2g.sh. Can anyone think of better ways?

I can make this change (eventually), but if it's just going to get r-, no point wasting anyone's time.

B2G: Marionette keeps waiting for port forwarding setup

Github gonk-misc pull request 39 contains a shell syntax error that causes ENABLE_MARIONETTE never being defined. An error message is shown during build time:

gecko/build/autoconf/mozconfig2client-mk: 2: [: eng: unexpected operator

Then when we starts marionette test, it will get blocked and waits until timeout.

CODE_OF_CONDUCT.md file missing

As of January 1 2019, Mozilla requires that all GitHub projects include this CODE_OF_CONDUCT.md file in the project root. The file has two parts:

  1. Required Text - All text under the headings Community Participation Guidelines and How to Report, are required, and should not be altered.
  2. Optional Text - The Project Specific Etiquette heading provides a space to speak more specifically about ways people can work effectively and inclusively together. Some examples of those can be found on the Firefox Debugger project, and Common Voice. (The optional part is commented out in the raw template file, and will not be visible until you modify and uncomment that part.)

If you have any questions about this file, or Code of Conduct policies and procedures, please see Mozilla-GitHub-Standards or email [email protected].

(Message COC001)

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.