Take a measure space $\Omega$, an exponent $1 \le p < \infty$ and a linear operator $T \colon L^p(\Omega) \to L^p(\Omega)$. Suppose that $T$ is positive, that is $Tf \ge 0$ a.e. if $f \ge 0$ almost everywhere. Then
$$\lVert T \rVert = \sup_{f \ge 0, \int_{\Omega} f^p \le 1} \lVert Tf \rVert_p;$$
that is, it suffices to take the supremum over positive functions.
I was wondering if there is something more general here. For example, does this hold if $T$ is an operator on $C(K)$ for compact $K$? Is this property true in some abstract class of Banach spaces?
I've got my hands over Aliprantis and Burkinshaw's Positive operators (@t.b.: thank you for hints!) and read something on Riesz spaces and Banach lattices. A Banach lattice is a triple $(E, \le , \lVert \cdot \rVert )$, where
A positive operator on $E$ is then a linear operator that is order preserving. It is not obvious that every positive linear operator is continuous (cfr. Aliprantis & Burkinshaw, §4.3), hence bounded.
Now let $T$ be a positive operator on $E$. By definition
$$\lVert T \rVert= \sup_{\lVert f\rVert \le 1} \lVert Tf \rVert.$$
We claim that, being $T$ positive, it suffices to take the supremum over positive $f$ (that is, over all $f$ that are greater than the origin):
$$\lVert T \rVert = \sup_{\lVert f \rVert \le 1, f \ge 0} \lVert Tf \rVert.$$
In fact, it is clear that the second supremum is lesser than the first. To prove the reverse inequality take $\lVert f \rVert \le 1$ and observe that $ \lVert \lvert f \rvert \rVert \le 1$ also. We have $Tf \le T\lvert f \rvert$ and so $\lVert Tf \rVert \le \lVert T \lvert f \rvert \rVert$.