Translated message

A translation of this page exists in English.

特権のないユーザーが sched_setscheduler を実行すると 'Operation not permitted' エラーが返される

Solution Verified - Updated -

Issue

優先度を変更するプログラムで sched_setscheduler を実行すると、root 権限で実行すると予想した通りに動作します。非特権ユーザーで実行すると、プログラムは EPERM エラーで失敗します。以下は strace の出力になります。

sched_setscheduler(4798, SCHED_FIFO, { 89 }) = -1 EPERM (Operation not permitted)
sched_setscheduler(4798, SCHED_RR, { 28 }) = -1 EPERM (Operation not permitted)

Environment

  • Red Hat Enterprise Linux

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content