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
35
votes
1 answer

Capabilities for Lua: what experience is there?

There's been some discussion on the cap-talk mailing list around whether Lua and Javascript support the object-capability model, with the conclusion that because of support for restricting the environment to called functions through setfenv, and the…
Charles Stewart
  • 11,661
  • 4
  • 46
  • 85
15
votes
2 answers

WordPress: Capabilities for custom post types

I'm writing a plugin which creates a custom post_type. I'd also like the plugin to create a custom role which can only add/edit/delete the new post_type. I've tried several plugins (Role Scoper, Advanced Access manager) and they allow me to redefine…
emersonthis
  • 32,822
  • 59
  • 210
  • 375
14
votes
2 answers

OSGi: What's the difference between Import-Package/Export-Package and Require-Capability/Provide Capability?

I am currently working with the OSGi framework but I have a question about some concepts that are not 100% clear to me. I have searching for it myself but I could not find a decent answer that clearly explains it. In a bundle his manifest header 2…
BramCoding
  • 395
  • 2
  • 11
8
votes
3 answers

how to allow a role editor to manage woocommerce taxonomies in worpdress?

I want the role Editor to have access to all woocommerce management, I managed to do so by adding capabilities to this role: $role = get_role( 'editor' ); $role->add_cap( 'manage_woocommerce_products' ); $role->add_cap(…
user2957058
  • 270
  • 5
  • 16
8
votes
2 answers

WordPress Create Custom Capability

I'm developing a shopping cart plugin, and planning to create a new user role for customers. My question is how to create custom capabilities so that i can assign these custom capabilities to the new user role, this answer provided a way to create…
Minqi
  • 79
  • 1
  • 1
  • 2
7
votes
2 answers

How to disable page's title in wp-admin from being edited?

I have a wp-network installed with users that can create pages in each site. Each of those pages get a place in the primary menu, and only one user have permission to create all this menu. I want to create a user only to be able to edit the content…
jperelli
  • 6,988
  • 5
  • 50
  • 85
4
votes
6 answers

How can I determine whether my iOS device has a torch light?

In my application I have the option for a torch light. Howevver, only iPhone 4 and iPhone 4S have torch lights. Other devices do not have the torch light. How can I find the current device model? Please help me. Thanks in advance.
Yuvaraj.M
  • 9,741
  • 16
  • 71
  • 100
4
votes
0 answers

Is there any way to get ssid of connected wifi in iOS Swift?

I want the information about the wifi with which my iPhone is connected. I have already added Access WiFi Information, Hotspot Configuration and Network Extension under Signing & Capabilities also Included UIBackgroundModes array containing…
Dhaval Kansara
  • 3,478
  • 5
  • 22
  • 50
4
votes
2 answers

Detecting a 4G capable device

I need to detect the 4G capability of the device. How can I do that? Thanks for any hints.
user289463
  • 2,804
  • 3
  • 20
  • 21
4
votes
7 answers

What technique would be the least effort to internationalise (at least multi-language) existing Delphi Applications?

I have developed about 300 Applications which I would like to provide with multi-language capabilities independent from the Operating System. I have written a just-in-time translator, but that is too slow in applications with many components. What…
Johan Bresler
  • 6,450
  • 11
  • 56
  • 77
4
votes
1 answer

How would you add capabilities to Erlang without making a new language?

I was wondering how someone would go about adding Capability-based security to Erlang without making it into a new language and preserving maximum backwards compatibility on the application side?
Eric des Courtis
  • 5,135
  • 6
  • 24
  • 37
4
votes
1 answer

Capture video without sound in Windows Store App

I want to write a Windows Store App that can capture video (without any sound) and take pictures. Imagine a digital camera: you can preview the picture on the screen of your device before pushing the button which takes the pic. The problem I'm…
alex_and_ra
  • 219
  • 1
  • 16
4
votes
0 answers

Prevent process from changing its process group id (`setpgid`)

Is there any way in Linux to prevent a process from modifying its process group ID, i.e. by calling setpgid? I need to do so because I am creating a sandbox, and I want to be able to kill a process and all of its children after n seconds. I am…
Jeroen Ooms
  • 31,998
  • 35
  • 134
  • 207
3
votes
1 answer

android device capability detection

i'm trying to determine if the device i'm running on has the capability to send/receive phone calls, email, and SMS. i found that i can use the TelephonyManager to get the devices phone number and on devices without the capability of making calls…
iHorse
  • 31
  • 2
3
votes
1 answer

Push notification capabilities ios

We have implemented push notifications in our iOS app, and it seems to be working fine, regardless of whether we set the push notification capability on or off. So my question is: What does that capability controll? See screenshot for where we set…
Claus
  • 51
  • 8
1
2 3
9 10