Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
New Contributor
Posts: 5
Registered: ‎01-11-2013
My Device: None
My Carrier: None

Packet Filter: /dev/pf permission denied

Hi

 

I found this very useful documentation of packet filtering in BB10. The problem is now, how do I gain O_RDWR access to the /dev/pf device? I noticed there is no su or root profile available?

 

Regards,

Cloooned

Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Packet Filter: /dev/pf permission denied

It's extremely unlikely that access to this is exposed to our apps. Where did you find this documentation?

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Highlighted
New Contributor
Posts: 5
Registered: ‎01-11-2013
My Device: None
My Carrier: None

Re: Packet Filter: /dev/pf permission denied

Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Packet Filter: /dev/pf permission denied

The documentation comes from QNX, which is used widely outside of BB10, so what you see there sometimes covers things which are not available to third-party apps running on BB10.

 

In this case, check the permissions of the device in question:

 

$ ls -l /dev/pf
nrw-rw----   1 root      nto               0 Jan 18 09:45 /dev/pf

Owned by root, r/w access from the nto group, neither of which is anything we can get at.

 

If there is some documented API that explicitly says a BB10 app can use it to access the PF stuff, or if you can find a command line utility that's got "world" executable executable permissions, then you could use that. I'm 99.5% sure you won't find it as this is the sort of thing that's tightly controlled in BB10 to preserve the system security.

 

I'm equally confident you'd see it covered by a "restricted app permission" and since I see no such permission listed, I think you can give up on this possibility.

 

If you have a need for it (and unless someone tells us I'm wrong about this), you could file a Feature Request in the Jira issue tracker describing your use case.


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!