Sponsored Content
Full Discussion: system sleep
Top Forums UNIX for Dummies Questions & Answers system sleep Post 45835 by tamemi on Friday 2nd of January 2004 02:47:33 PM
Old 01-02-2004
Dear Guys ,

still my problem is not solved .
now i can be sure that machine goes to something like sleep mode or stop mode from application or demon called apmd .

and it is related to pcmcia for ;aptops although i have desktop !!

and i found files related to it under
/etc/sysconfig/apmd .

but i want to remove all this packge or application ,, but how ??

thanks
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

sleep

what is the purpose of the sleep command? (5 Replies)
Discussion started by: Anna
5 Replies

2. Shell Programming and Scripting

Sleep under one second

If I want a script to sleep for less than a second, would I use a decimal? In other words, if I wanted my script to sleep for 1/4 of a second, would I say, SLEEP .25 ?? (5 Replies)
Discussion started by: Scoogie
5 Replies

3. UNIX for Dummies Questions & Answers

Sleep less than 1 second

Does anyone know a way to sleep less than 1 second? Sometimes when I write scripts that iterates a loop many times it would be nice to slow things down, but sometimes 1 second is too much. (9 Replies)
Discussion started by: bjorno
9 Replies

4. Shell Programming and Scripting

Wrapping 'sleep' with my 'resleep' function (Resettable sleep)

This is a very crude attempt in Bash at something that I needed but didn't seem to find in the 'sleep' command. However, I would like to be able to do it without the need for the temp file. Please go easy on me if this is already possible in some other way: How many times have you used the... (5 Replies)
Discussion started by: deckard
5 Replies

5. Shell Programming and Scripting

Sleep while i > 0

Hi, I have a script that runs a process at the beginning and I want to sleep/wait until this process is finished and then continue with the rest of the script. I am trying with this, but it is not working: process=`ps -ef | grep "proc_p01 -c" | grep -v grep | wc -l` if ; do sleep 10 done... (7 Replies)
Discussion started by: apenkov
7 Replies

6. BSD

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (0 Replies)
Discussion started by: naveeng
0 Replies

7. UNIX for Advanced & Expert Users

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (1 Reply)
Discussion started by: naveeng
1 Replies

8. UNIX for Advanced & Expert Users

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (6 Replies)
Discussion started by: naveeng
6 Replies
apmd_selinux(8) 						SELinux Policy apmd						   apmd_selinux(8)

NAME
apmd_selinux - Security Enhanced Linux Policy for the apmd processes DESCRIPTION
Security-Enhanced Linux secures the apmd processes via flexible mandatory access control. The apmd processes execute with the apmd_t SELinux type. You can check if you have these processes running by executing the ps command with the -Z qualifier. For example: ps -eZ | grep apmd_t ENTRYPOINTS
The apmd_t SELinux type can be entered via the apmd_exec_t file type. The default entrypoint paths for the apmd_t domain are the following: /usr/sbin/apmd, /usr/sbin/acpid, /usr/sbin/powersaved PROCESS TYPES
SELinux defines process types (domains) for each process running on the system You can see the context of a process using the -Z option to ps Policy governs the access confined processes have to files. SELinux apmd policy is very flexible allowing users to setup their apmd pro- cesses in as secure a method as possible. The following process types are defined for apmd: apm_t, apmd_t Note: semanage permissive -a apmd_t can be used to make the process type apmd_t permissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. BOOLEANS
SELinux policy is customizable based on least access required. apmd policy is extremely flexible and has several booleans that allow you to manipulate the policy and run apmd with the tightest access possible. If you want to allow users to resolve user passwd entries directly from ldap rather then using a sssd server, you must turn on the authlo- gin_nsswitch_use_ldap boolean. Disabled by default. setsebool -P authlogin_nsswitch_use_ldap 1 If you want to allow all daemons to write corefiles to /, you must turn on the daemons_dump_core boolean. Disabled by default. setsebool -P daemons_dump_core 1 If you want to enable cluster mode for daemons, you must turn on the daemons_enable_cluster_mode boolean. Enabled by default. setsebool -P daemons_enable_cluster_mode 1 If you want to allow all daemons to use tcp wrappers, you must turn on the daemons_use_tcp_wrapper boolean. Disabled by default. setsebool -P daemons_use_tcp_wrapper 1 If you want to allow all daemons the ability to read/write terminals, you must turn on the daemons_use_tty boolean. Disabled by default. setsebool -P daemons_use_tty 1 If you want to deny any process from ptracing or debugging any other processes, you must turn on the deny_ptrace boolean. Enabled by default. setsebool -P deny_ptrace 1 If you want to allow all domains to use other domains file descriptors, you must turn on the domain_fd_use boolean. Enabled by default. setsebool -P domain_fd_use 1 If you want to allow all domains to have the kernel load modules, you must turn on the domain_kernel_load_modules boolean. Disabled by default. setsebool -P domain_kernel_load_modules 1 If you want to allow all domains to execute in fips_mode, you must turn on the fips_mode boolean. Enabled by default. setsebool -P fips_mode 1 If you want to enable reading of urandom for all domains, you must turn on the global_ssp boolean. Disabled by default. setsebool -P global_ssp 1 If you want to allow confined applications to run with kerberos, you must turn on the kerberos_enabled boolean. Enabled by default. setsebool -P kerberos_enabled 1 If you want to allow system to run with NIS, you must turn on the nis_enabled boolean. Disabled by default. setsebool -P nis_enabled 1 If you want to allow confined applications to use nscd shared memory, you must turn on the nscd_use_shm boolean. Disabled by default. setsebool -P nscd_use_shm 1 NSSWITCH DOMAIN
If you want to allow users to resolve user passwd entries directly from ldap rather then using a sssd server for the apmd_t, you must turn on the authlogin_nsswitch_use_ldap boolean. setsebool -P authlogin_nsswitch_use_ldap 1 If you want to allow confined applications to run with kerberos for the apmd_t, you must turn on the kerberos_enabled boolean. setsebool -P kerberos_enabled 1 MANAGED FILES
The SELinux process type apmd_t can manage files labeled with the following file types. The paths listed are the default paths for these file types. Note the processes UID still need to have DAC permissions. adjtime_t /etc/adjtime apmd_lock_t /var/lock/subsys/acpid apmd_log_t /var/log/acpid.* apmd_tmp_t apmd_var_lib_t /var/lib/acpi(/.*)? apmd_var_run_t /var/run/.?acpid.socket /var/run/apmd.pid /var/run/acpid.pid /var/run/powersaved.pid /var/run/powersave_socket cluster_conf_t /etc/cluster(/.*)? cluster_var_lib_t /var/lib/pcsd(/.*)? /var/lib/cluster(/.*)? /var/lib/openais(/.*)? /var/lib/pengine(/.*)? /var/lib/corosync(/.*)? /usr/lib/heartbeat(/.*)? /var/lib/heartbeat(/.*)? /var/lib/pacemaker(/.*)? cluster_var_run_t /var/run/crm(/.*)? /var/run/cman_.* /var/run/rsctmp(/.*)? /var/run/aisexec.* /var/run/heartbeat(/.*)? /var/run/cpglockd.pid /var/run/corosync.pid /var/run/rgmanager.pid /var/run/cluster/rgmanager.sk devicekit_var_log_t /var/log/pm-suspend.log.* /var/log/pm-powersave.log.* devicekit_var_run_t /var/run/udisks.* /var/run/devkit(/.*)? /var/run/upower(/.*)? /var/run/pm-utils(/.*)? /var/run/DeviceKit-disks(/.*)? root_t / /initrd sysctl_type sysfs_t /sys(/.*)? systemd_passwd_var_run_t /var/run/systemd/ask-password(/.*)? /var/run/systemd/ask-password-block(/.*)? FILE CONTEXTS
SELinux requires files to have an extended attribute to define the file type. You can see the context of a file using the -Z option to ls Policy governs the access confined processes have to these files. SELinux apmd policy is very flexible allowing users to setup their apmd processes in as secure a method as possible. STANDARD FILE CONTEXT SELinux defines the file context types for the apmd, if you wanted to store files with these types in a diffent paths, you need to execute the semanage command to sepecify alternate labeling and then use restorecon to put the labels on disk. semanage fcontext -a -t apmd_exec_t '/srv/apmd/content(/.*)?' restorecon -R -v /srv/myapmd_content Note: SELinux often uses regular expressions to specify labels that match multiple files. The following file types are defined for apmd: apmd_exec_t - Set files with the apmd_exec_t type, if you want to transition an executable to the apmd_t domain. Paths: /usr/sbin/apmd, /usr/sbin/acpid, /usr/sbin/powersaved apmd_initrc_exec_t - Set files with the apmd_initrc_exec_t type, if you want to transition an executable to the apmd_initrc_t domain. apmd_lock_t - Set files with the apmd_lock_t type, if you want to treat the files as apmd lock data, stored under the /var/lock directory apmd_log_t - Set files with the apmd_log_t type, if you want to treat the data as apmd log data, usually stored under the /var/log directory. apmd_tmp_t - Set files with the apmd_tmp_t type, if you want to store apmd temporary files in the /tmp directories. apmd_unit_file_t - Set files with the apmd_unit_file_t type, if you want to treat the files as apmd unit content. apmd_var_lib_t - Set files with the apmd_var_lib_t type, if you want to store the apmd files under the /var/lib directory. apmd_var_run_t - Set files with the apmd_var_run_t type, if you want to store the apmd files under the /run or /var/run directory. Paths: /var/run/.?acpid.socket, /var/run/apmd.pid, /var/run/acpid.pid, /var/run/powersaved.pid, /var/run/powersave_socket Note: File context can be temporarily modified with the chcon command. If you want to permanently change the file context you need to use the semanage fcontext command. This will modify the SELinux labeling database. You will need to use restorecon to apply the labels. COMMANDS
semanage fcontext can also be used to manipulate default file context mappings. semanage permissive can also be used to manipulate whether or not a process type is permissive. semanage module can also be used to enable/disable/install/remove policy modules. semanage boolean can also be used to manipulate the booleans system-config-selinux is a GUI tool available to customize SELinux policy settings. AUTHOR
This manual page was auto-generated using sepolicy manpage . SEE ALSO
selinux(8), apmd(8), semanage(8), restorecon(8), chcon(1), sepolicy(8) , setsebool(8) apmd 14-06-10 apmd_selinux(8)
All times are GMT -4. The time now is 04:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy