Questions tagged [privilege]
71 questions
22
votes
1 answer
Difference between DPL and RPL in x86
Reading intel x86 Manual and other sources, i did not understand the difference between DPL (Descriptor privilege level) and RPL (Requested privilege level).
Why is there necessity to have both?
Thank you so much

dlbp
- 227
- 1
- 2
- 5
13
votes
3 answers
What specifically causes EPrivilege to be raised?
I'm getting a bug report that some functionality in some music-playing code in an external DLL (SDL_Mixer, in case it helps) that my program uses is raising EPrivilege. The DLL is written in C, so I can't get useful stack trace information out of…

Mason Wheeler
- 82,511
- 50
- 270
- 477
11
votes
2 answers
How to bind to a port less than 1024 in Android?
I have an Android service trying to bind to a server socket port 24. As it is privileged port, it is failing with a bind exception.
I am wondering what I need to do to get this working.
I see this was asked couple of times in this forum, but without…

videoguy
- 1,732
- 2
- 24
- 49
7
votes
1 answer
java jstack tool insufficient memory or insufficient privilege to attach
I am really confused about:
In my windows 2008r2, I have a windows service, in fact it's a java progress running as SYSTEM user. Now, I use Jstack rawly to the the service. But it occur error :
insufficient memory or insufficient privilege to…

user2994487
- 121
- 2
- 4
7
votes
2 answers
What decides privilege level of the process?
I heard of privilege levels, rings, privileged instructions, non privileged instructions, user mode, kernel mode, user space, kernel space.
User process will run with low privilege where OS process with higher ,also I heard about CPL register which…

Nikhil Rupanawar
- 4,061
- 10
- 35
- 51
6
votes
2 answers
How linux users change their password without root privilege?
I've been noticed that normal users can change their own passwords without sudo. But as far as i know, to change password has to write the /etc/shadow file which is accessible only by root.
How does that happen??

Chen
- 195
- 1
- 1
- 10
6
votes
1 answer
What Oracle privileges do I need to use DBMS_METADATA.GET_DDL?
(Excuse any ignorance of mine here - I'm not a seasoned Oracle user.)
I'm attempting to use the DBMS_METADATA.GET_DDL function (in conjunction with ALL_OBJECTS or some such) to get the DDL for all of the tables in a particular schema. When I do this…
Lee
5
votes
1 answer
Privilege level checking when accessing code segment
I'm trying to understand some specifics about about the intel x86 architecture. I have not yet really understood the call gate mecanism, but without it,
for accessing a non conformant code segment it's DPL must be equal to the CPL.
I do understand…

Youssef Azzaoui
- 63
- 1
- 7
4
votes
1 answer
Root priv can't be dropped in python even after seteuid. A bug?
Root priv can't be dropped in python even after seteuid. A bug?
EDIT Summary: I forgot to drop gid. The accepted answer may help you, though.
Hi. I can't drop the root privilege in python 3.2 on my linux. In fact, even after seteuid(1000), it can…

teika kazura
- 1,348
- 1
- 16
- 21
4
votes
2 answers
Call binary without elevated privilege
In order to request UAC elevated privilege from Python, when calling an external program, you can just do
ctypes.windll.shell32.ShellExecuteW(None, "runas", my_binary_file_path, "", None, 1)
Yet, assuming your Python script is executing with admin…

glezo
- 742
- 2
- 9
- 22
4
votes
1 answer
How to get system privilege
I have a C# program that require SeSystemEnvironmentPrivilege to access the UEFI NVRAM.
I found a really long code, that uses Win32 API to get the privilege, but is there a .NET version to get it? In process class, or somewhere else?

Rabir
- 59
- 1
4
votes
0 answers
Accessing Files From Java Applet
I'm using a java applet to select a gml file and validate it with a xsd scheme.
String selectedPath;
FileDialog selectFileDialog;
private String ShowFileDialog(String title, String extension) {
selectFileDialog.setFile(extension);
…

Ahmet Kakıcı
- 6,294
- 4
- 37
- 49
4
votes
1 answer
x86 - changing privilege level from CPL0 to CPL3
I'm working on some low level os code (64-bit) and I'm trying to figure out how to switch from CPL0 to CPL3. The problem is this little sentence in the Intel developer manual I ran across: ''...the processor does not allow a transfer of program…

ballaw
- 1,489
- 6
- 20
- 28
3
votes
1 answer
Privileges for spark sql with sentry
I'm trying to make the privileges to access Spark-SQL with sentry, and spark sql connects with thrift port withe hiveserver2( --hiveconf hive.server2.thrift.port). However, while I can limit users' privileges on hive successfully, I cannot limit the…

IT-DONG
- 41
- 5
3
votes
1 answer
Current x86 privilege level on a custom OS
In a custom OS running on an x86 in protected mode, is there a way to obtain the current privilege level, other than e.g. executing a privileged instruction and seeing if it crashes?
For instance, register CR0 contains the PE bit, which indicates if…

anol
- 8,264
- 3
- 34
- 78