Planet maemo

Felipe Zimmerle

D-Bus Loadable security module support

2011-12-24 02:34 UTC  by  Felipe Zimmerle
0
0

While I was thinking about LSM mediations of the D-Bus messages, I found out a nice work that is being developed by the Ubuntu sec team in order to support the AppArmor mediation on D-Bus message exchange and service acquisition.

Having a chat with John Johansen (from Unbuntu sec team), he said that he was missing a loadable module support on the D-Bus. Allowing the support of different Linux Security Modules mediation without messing up the D-Bus daemon code, which does make sense.

I started to implement a little PoC about this loadable support, which consists in the following: the LSM modules can be dynamically loadable at the d-bus daemon startup. By copying a D-Bus LMS module to a given directory (which can be specified at the d-bus configuration) it will be loaded and registered.

The idea is to have independent modules, if possible use only the D-Bus functions provided by libdbus, however, of course, if needed symbols can be copied from libdbus-internal.a.

Despite the fact that the modules can be independent of the D-Bus internals, they must have at least one known function, this function should be named as “pre_init“, and receives the pointer to the D-Bus internal function “register_security“. The “register_security” function should be called by the module if it is loaded successfully. The “pre_init” function must return a “dbus_bool_t“: true if everything goes right or false if not. Note that audit can be also initialized by this function.

The function “register_security” receives as parameter a pointer to the structure “security_validations” that is part of dbus-security.h. The structure is illustrated bellow:


struct security_validations
{
 char *name;
 dbus_bool_t (*bus_security_allows_send) (DBusConnection *,
                                         DBusConnection*,
                                         const char *,
                                         const char *,
                                         const char *,
                                         const char *,
                                         const char *,
                                         const char *,
                                         const char *,
                                         DBusError *);
 dbus_bool_t (*bus_security_allows_acquire_service) (DBusConnection *,
                                                    const char *,
                                                    const char *,
                                                    DBusError *);
 dbus_bool_t (*shutdown) (void);
};

The structure “security_validations” defines the hooks and the name of the security module and also the function to shutdown the mediation. Two main hooks were needed, the first is the one responsible to mediate the message exchanges and the second is the responsible to avoid unauthorized process to acquire some service. The shutdown hook is not less important, but less used. Shutdown is only called when the D-Bus daemon is hanging out.

The current implementation of SELinux mediation needs more hooks to work than what I am offering in this PoC. Since the SELinux implementation has some performance improvements by doing caching, it will be necessary to create new hooks to gather some information before deciding whether some message is ok to go or not, but this may be a later discussion.

The patched D-Bus code is available at:

http://cgit.collabora.com/git/user/zimmerle/dbus-lsm.git/

And there is a dummy module at:

http://cgit.collabora.com/git/user/zimmerle/dbus-dummy-lsm.git/

Categories: Collabora
Randall Arnold

original source: http://www.pop.com.br/

Click to read 1386 more words
Categories: Into Outreach
Gustavo Barbieri

introduction and motivation

At ProFUSION a common topic is how to optimze the system. Not just the speed, but also what and how it is done. Not just for our embedded systems, but also our desktops and laptops.

Click to read 1632 more words
Categories: C
Gustavo Barbieri

introduction and motivation

At ProFUSION a common topic is how to optimze the system. Not just the speed, but also what and how it is done. Not just for our embedded systems, but also our desktops and laptops.
Click to read 1602 more words
Categories: C
Andres Gomez

Leading quickly to the “ham”, just install Applications Fullscreener and Automatic Skype Launcher in your N8x0 and turn it into a Skype phone. Now, the long explanation

Categories: English
nokian900freak

Web Apps for the N900

2011-12-20 15:55 UTC  by  nokian900freak
0
0

As for some N900 users, full fledge browser would come in handy at some points but when it comes to rendering a web full of images and Javascript content may be stressful on the phone and crashing the web browser at some point.

Introducing Web App for the N900.

To make things simple, it is a native app on the N900 that renders the webpage into just the important contents for you to view, hence removing all the ads and Javascript contents that contain tons of animation.

To install, first you would have to install this dependency in XTerminal :

apt-get install qtwrt

Then click on the following links to install the Web App that you want. It would bring you to a 4shared site, and when prompted, click open with Widget Installer. After installation, you would see an icon in your menu.

These links best accessed through your N900:

Yahoo Mail

Wikipedia

Engadget

Talk Maemo

More Web apps available from this source

Related Posts:

Categories: Applications
nokian900freak

An update on NITDroid for the N900

2011-12-19 16:38 UTC  by  nokian900freak
0
0

NITDroid have been running over the years on the N900 and here is the current latest update :

Latest stable Android version running on the N900 is Version 2.3.7. Well this is practically a Gingerbread OS with Google Wallet support. This version is called N12 for NITDroid for the N900

N12 includes receiving and sending SMS successfully. However voice calls and camera are still under development

Here is a list with compatible games being able to run on the NITDroid itself. Overclocking and installation on internal EMMC would be suggested to ensure smooth game play.

And on the day the Ice Cream Sandwich source code is being released, a port of ICS has been done for the N900. Credits to the NITDroid developer drunkdebugger. Here is the link to the video : Video

Let’s hope more updates would come soon and we can get a stable NITDroid to replace Maemo for the N900.

Related Posts:

Categories: Firmware
Andrew Flegg

MWKN Weekly News for Monday, 19 Dec 2011

2011-12-19 09:03 UTC  by  Andrew Flegg
0
0
Front Page

Nokia N900 gamepad hack

Engadget covers Emyrth's slide-on, USB-based, gamepad for the N900: "Nokia's internetting tablet that simply refuses to quit has already run the multi-purpose gamut, standing in as a brain scanner / replacement, OS dual-booter and Ice Cream Sandwich biter -- just to name a few."

"Now, a homebrew mod from Polish hacker Emeryth, has that soon-to-be retro QWERTY slider sporting a custom gamepad to make those long hours logged into video game emulation that much more thumb-friendly. The exposed overlay is based on an ATmega8A microcontroller and plugs directly into the device's USB port, giving gamers an eight button solution, plus a PSP-like analog stick. It's a handy, albeit ugly, add-on that'll help get your gaming heroes of old through well trodden enemy lines."

A video is presented, and schematics and code is available to download from Andrzej's blog.

Read more (engadget.com)

First Qt application accepted to Apple's App Store

Qt was always intended as a cross-platform development framework. Nokia took it to Symbian, Maemo, MeeGo and Harmattan. Open source Necessitas took it to Android. Now, Qt4iOS on Twitter says "THE question has finally been answered... The first Qt Widget app to be submitted to Apple has been accepted for the App Store... :)"

This means a Qt developer can now target Android, iOS, Symbian and MeeGo 1.2 Harmattan with a single code-base.

Read more (twitter.com)

In this edition (Download)...

  1. Front Page
    • Nokia N900 gamepad hack
    • First Qt application accepted to Apple's App Store
  2. Applications
    • Installing AIM/ICQ/Yahoo!/MSN/Vkontakte and QIP chat accounts, with GUI, on Nokia N9
    • Kheweeteur 0.7.1 promoted to Extras-testing for testing
  3. Development
    • Qt Creator 2.4.0 released with improved coding style and quick fixing
    • PhoneGap porting to MeeGo 1.2 Harmattan
  4. Devices
    • Adding additional languages to N900 welcome screen
  5. Announcements
    • Fully open source flasher
    • Nokia Live View augmented reality available for Nokia N9
Stephen Gadsby

maemo.org Extras Bug Jar 2011.51

2011-12-19 00:02 UTC  by  Stephen Gadsby
0
0

A Quick Look at Extras in Bugzilla
2011-12-12 through 2011-12-18

Click to read 2584 more words
Categories: Extras
nokian900freak

NVideo – The new youtube video browser

2011-12-18 15:45 UTC  by  nokian900freak
0
0

Everyone wants a proper Youtube browser when it comes to viewing online videos on the N900. Viewing a full Youtube page on the browser may hog up alot of data and even your memory causing a slowdown in performance and even crash the Web App. Introducing the new NVideo, designed specifically to ease the usage of Youtube on the N900.

 

Here is the breakdown of the review.

Starting the app took quite a while roughly of 15-20 seconds before it could be totally functional but from there onwards the app runs smoothly and switches between tab nicely. Logging into the Youtube account here with your current Google account requires no hassle.

The page that you would be shown for videos recommendation that relates to what you have been watching recently.

The loading screen that you are presented with when the video loads. At the bottom bar, the image with 3 lines is the additional buttons option.

The sharing and like button you would see on every Youtube videos. It also has the download video feature

One of the hiccups I got was trying to add a comment into one of the videos. It wasn’t responsive and it blocked the video.. Trying to get back to the video took much hassle and once I got back to the video, it has finished. I guess a fix should come soon enough

Overall I would say it is a good Youtube browsing app but still slightly lacks behind what the CuteTube has to offer with better UI and better response.

6/10

Related Posts:

Categories: Applications
admin

Firefox on Android (native) - UI Polish

2011-12-14 19:50 UTC  by  Unknown author
0
0
Firefox for Mobile Firefox for Mobile Firefox on Android (native) - UI Polish - http://madhava.com/egotism... December 14, 2011 from Planet Mozilla: Madhava Enros - Comment - Like
Henri Bergius

At FOSDEM 2012 we will have a devroom related to Open Mobile Linux. Our primary goal is to facilitate meetups, collaboration and awareness between different projects and communities within Open Mobile Linux and provide a place to present directions, ideas and your projects themselves.

By Open Mobile Linux we mean any open source projects revolving around typical non-desktop/server Linux, such as handsets, tablets, netbooks or other creative uses. Examples of such projects could be Qt5, Mer, MeeGo, Android, webOS, Plasma Active, Tizen, Boot to Gecko, SHR and other related efforts.

We have the room AW1.120 with 74 seats, a video projector (VGA), wireless internet on Saturday 4th February for a total of 8 hours.

The format we will be utilizing is lightning talks of length 15 minutes with 10 minutes of questions, 5 minute changeover to next speaker. Our goal is about 15 talks during the day.

The motivation is that after each talk, you and your project will be visible to the rest of the Open Mobile Linux community and further deeper discussions into your topic with your peers can continue outside the devroom.

Please send a short biography and an abstract for your talk to carsten.munk@gmail.com by Dec 31st 2011, and we'll get back to you at latest January 7th.

We're also grateful for volunteers helping to run the devroom. Contact Carsten if you're interested.

Categories: desktop