Questions tagged [capability]

Capability is the ability to perform actions. In computer science the term is often used in capability-based security, a granular way to restrict processes' rights.

A good reference is the wikipedia page for capability based security.

An example of such mechanism are Linux capabilities, these have a separate tag:

142 questions
1
vote
1 answer

Can I develop App in Xcode 9.2 for iOS 12?

I faced the issue that I can only install on Mac Sierra 10.12.6 Xcode 9.2 and it supports the maximum iOS version of 11.x I want to develop for iOS 12.x and further, can the same code I develop on 9.2 run on devices with iOS 12.x? If it’s not…
Daniil Kunin
  • 143
  • 1
  • 12
1
vote
0 answers

App Store Rejection (App store rejected App because of UIRequiredDeviceCapabilities key)

Dec 18, 2018 at 10:34 AM From Apple 2. 3 Performance: Accurate Metadata Guideline 2.3 - Performance - Accurate Metadata We were unable to install the app on iPad. The UIRequiredDeviceCapabilities key in the Info.plist is set in such a way that the…
BalKrishan Yadav
  • 467
  • 7
  • 21
1
vote
0 answers

Wordpress: Restrict specific user to manages posts in specific category

I explain this with an example. In my blog I have 2 users: John Paul that write posts. Posts have 2 categories (to be precise, it's a custom taxonomy): Cats Dogs John manages the Cats section of the blog and Paul manages the Dogs. So I want John…
Fred K
  • 13,249
  • 14
  • 78
  • 103
1
vote
0 answers

What is the use of cap_set_proc() if the program needs to be run as root

I am trying to unmount a usb-storage device through a c++ program, using umount2() function. Since umount2() needs administrative privileges, I implemented umount2() with cap_set_proc() as follows cap_t caps; cap_value_t cap_list[1]; caps =…
vacky
  • 277
  • 1
  • 4
  • 16
1
vote
1 answer

Is there is a specific capability to read a serial port?

I want to read data from a GPS attached to an USB and seen by the system as a serial device. I would like not to use chmod u+s nor sudo and give to the process just the minimum capabilities to do that. To test, I used the cat command: sudo cat…
Giuseppe Levi
  • 127
  • 1
  • 1
  • 7
1
vote
0 answers

why linux system call "capset" fail in this case?

I am trying to test the "capset" call in ubuntu system. This is the codes: int cap_mask cap_header.pid = getpid() ; cap_header.version = _LINUX_CAPABILITY_VERSION_3; if( capget(&cap_header, &cap_data) < 0) { printf("%s\n", strerror(errno)); …
AllenHu
  • 561
  • 2
  • 5
  • 13
1
vote
1 answer

how to get UAprof url for samsung mobile

when i connect to the servlet from my andoid mobile browser I need to get UAprof url for my samsung mobile in x-wap-profile headers but im not getting the header ... but when i tried to connect the servlet from htc i could to get uaprof url in…
1
vote
2 answers

Selenium WebDriver (Ruby): How to download PDF files?

When running WebDriver (Ruby) using Chrome, what are the specific command-line switches or desired_capabilities to disable Chrome's built-in PDF viewer. In other words, how does one programmatically configure Chrome to download PDF files rather than…
Noffica
  • 469
  • 8
  • 23
1
vote
2 answers

For a RESTful service - How does a client find valid values for a resource attribute?

As a part of capabilities discovery for a resource provided by a RESTful API, I am looking for a way for the service to announce accepted values for an attribute. Consider the following example, where an apple resource has an attribute color: GET…
1
vote
1 answer

What's the difference between browser 'preferences' and 'desired capabilities'?

What's the difference between setting 'preferences' and 'desired capabilities' in the browser using Selenium? I see people/blogs mentioning "browser.helperApps.neverAsk.saveToDisk" as preference. But how do you distinguish between them?
RamaKrishna
  • 101
  • 2
  • 15
1
vote
2 answers

App Store: Problem with UIRequiredDeviceCapabilities

I've uploaded my first App to App Store, but I did NOT put on the UIRequiredDeviceCapabilities that my App requires location-services and wifi. RESULT: the app does not start looking for the coordinates as it should do. (When I've installed the App…
jcdmb
  • 3,016
  • 5
  • 38
  • 53
1
vote
2 answers

Local Plugin permission issue not apply on course manager specifically - Moodle

I am new in Moodle and i have a task to create local plugin with course manager role. In my system i have bulk of users in specific course and they are categories in different roles. Some of are bind with students and rest of are Managers. For my…
Query Master
  • 6,989
  • 5
  • 35
  • 58
1
vote
1 answer

Firefox - Set capability not working

I want to block image and Javascript from third-part on load, and edit user.js in profile folder to merge with pref.js when Firefox startup. Here's my code in user.js: user_pref("capability.policy.policynames", "noimage, nojs,…
TrungNg
  • 63
  • 2
  • 7
1
vote
2 answers

App store rejected App because of UIRequiredDeviceCapabilities key

I will quote the apple document for UIRequiredDeviceCapabilities which states : UIRequiredDeviceCapabilities (Array or Dictionary - iOS) lets iTunes and the App Store know which device-related features an app requires in order to run. iTunes and…
Mr. Bean
  • 4,221
  • 1
  • 19
  • 34
1
vote
1 answer

Are there any SPARQL-based tests for RDF store inference capabilities?

Given the SPARQL / SPARQL Update endpoint, how to test empirically the RDF store for RDFS/RDFS+/OWL 1/2 * / maybe SPIN capabilities it offers? Is there any readily available set of queries? That is, after running those queries and depending on the…
Roman Susi
  • 4,135
  • 2
  • 32
  • 47