XPrivacy icon indicating copy to clipboard operation
XPrivacy copied to clipboard

Restrict function when no permission is requested

Open 0x0878 opened this issue 13 years ago • 15 comments

Hi all,

would it be possible to add an ie. 'global restirction' that app that want to ie. use Internet and have no permissions in their Manifest file can get restricted?

I have seen some really weird and scary accesses that make me feel bad. There is ie. the "Estonian Keyboard Layout" that - from all the layouts - was connecting to the internet. I didn't even use that layout as I only use German and English.

Would be great if we could think about a solution to such app requests...

Thanks

0x0878 avatar Nov 29 '13 08:11 0x0878

That is already possible, just disable the filter on permissions.

M66B avatar Nov 29 '13 08:11 M66B

Hi Marcel,

I didn't really get that. Filter on permissions just let's me see all restrictions besides the ones the app claims to use. What I wanted to achieve is that: if any app does not state it needs NFC and then uses NFC - XPivacy should restrict it.

0x0878 avatar Nov 29 '13 08:11 0x0878

You can do that yourself by ticking the NFC category for the application. I don't want to XPrivacy automatically restrict things, cause it can break the application when there is an update that adds a new permission, like NFC is added to Google Wallet.

M66B avatar Nov 29 '13 08:11 M66B

OK, again ... the thing is the 'green key' is missing. I don't know that it will use NFC at some point. Same goes for many apps that read your calendar although that have no rights claimed for this. It's quite a fulltime job to restrict almost anything for any app, even when it comes to a clean install. That would take hours. So, if XPrivacy would have an option to let the user select that any access to stuff an app does currently not claim to need rights for is restricted, that would be a BIG-PRIVACY-PLUS and, moreover, a veeeery little overhead in administration for the end user. If than would also a notification would appear that app XYZ used functionality ABC although it did say it will not - that would be great.

I would donate 10 bucks for that. :) Buying user already since one can buy bulk license.

0x0878 avatar Nov 29 '13 08:11 0x0878

Try this: select the category NFC, then menu Toggle restrictions. This will switch the NFC category on or off for the applications visible.

I will think about your feature request.

M66B avatar Nov 29 '13 09:11 M66B

If a category is in the template - it is restricted whether the app has permissions or not.

jpeg729 avatar Dec 01 '13 16:12 jpeg729

@jpeg729 Oh, that would make sense! So if an application has a new permission it wants after an update, and if this permission is restricted in my template, it will be automatically restricted after the update?

Cerberus-tm avatar Dec 02 '13 00:12 Cerberus-tm

The template is only applied on app install. So if it was in the template when the app was installed, then it should still be restricted now.

On 2 December 2013 01:51, Cerberus-tm [email protected] wrote:

@jpeg729 https://github.com/jpeg729 Oh, that would make sense! So if an application has a new permission it wants after an update, and if this permission is restricted in my template, it will be automatically restricted after the update?

— Reply to this email directly or view it on GitHubhttps://github.com/M66B/XPrivacy/issues/848#issuecomment-29588629 .

jpeg729 avatar Dec 02 '13 01:12 jpeg729

Ah OK, very interesting, thank you. Is this in the readme somewhere?

Cerberus-tm avatar Dec 02 '13 02:12 Cerberus-tm

Not in so much detail, but reading between the lines and experimenting a little will get you there.

The template, available from the main menu is applied to newly installed applications or if you use the menu apply template from the application details view.

I've also been digging through the source code recently. One detail that might surprise you is the behaviour of the Apply template option in the app specific view - if anything covered by the template is checked it will clear the categories of the template, otherwise it checks them.

jpeg729 avatar Dec 02 '13 06:12 jpeg729

@kosique the only use case I see here is restrict everything without permission, except everything with permission. I guess that is what you want?

M66B avatar Dec 02 '13 17:12 M66B

@jpeg729 Yes, I have noticed Apply Template often erases my permissions seemingly at random. I have learned to double check whether or not they are applied correctly and reaply if not. I can live with that and take it into account, now that I know it. It probably confuses new users, but, oh, well.

Cerberus-tm avatar Dec 02 '13 18:12 Cerberus-tm

I'd vote for Apply Template to clear all and restrict everything covered by the template. That seems to be the simplest logic for it.

On 2 December 2013 19:15, Cerberus-tm [email protected] wrote:

@jpeg729 https://github.com/jpeg729 Yes, I have noticed Apply Template often erases my permissions seemingly at random. I have learned to double check whether or not they are applied correctly and reaply if not. I can live with that and take it into account, now that I know it. It probably confuses new users, but, oh, well.

— Reply to this email directly or view it on GitHubhttps://github.com/M66B/XPrivacy/issues/848#issuecomment-29642690 .

jpeg729 avatar Dec 02 '13 19:12 jpeg729

I agree.

Cerberus-tm avatar Dec 02 '13 21:12 Cerberus-tm

Merging with #1031

M66B avatar Dec 28 '13 07:12 M66B